From owner-freebsd-audit Sat Jun 23 14:45:35 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id E83ED37B405 for ; Sat, 23 Jun 2001 14:45:32 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f5NLwC589659; Sat, 23 Jun 2001 17:58:12 -0400 (EDT) (envelope-from mike) Date: Sat, 23 Jun 2001 17:58:12 -0400 (EDT) Message-Id: <200106232158.f5NLwC589659@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/usr.sbin/lptcontrol patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would appreciate it if someone would commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/lptcontrol.20010623.patch Best regards, Mike Barcroft ----------------------------------------------------------------------- lptcontrol.20010623.patch o Fix two compiler warnings and set WARNS?=2 Index: lptcontrol/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/lptcontrol/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- lptcontrol/Makefile 2001/03/26 14:40:43 1.4 +++ lptcontrol/Makefile 2001/06/23 21:42:37 @@ -1,7 +1,7 @@ # $FreeBSD: src/usr.sbin/lptcontrol/Makefile,v 1.4 2001/03/26 14:40:43 ru Exp $ PROG= lptcontrol +WARNS?= 2 MAN= lptcontrol.8 -CFLAGS+= -Wall .include Index: lptcontrol/lptcontrol.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/lptcontrol/lptcontrol.c,v retrieving revision 1.11 diff -u -r1.11 lptcontrol.c --- lptcontrol/lptcontrol.c 2000/07/14 07:55:26 1.11 +++ lptcontrol/lptcontrol.c 2001/06/23 21:42:37 @@ -56,7 +56,7 @@ #define USE_EXT_MODE 2 #define USE_STD_MODE 3 -static void usage() +static void usage(void) { fprintf(stderr, "usage: lptcontrol -i | -p | -s | -e [-d device]\n"); exit(1); @@ -77,7 +77,7 @@ { int opt; int irq_status = IRQ_INVALID; - char *device = DEFAULT_DEVICE; + const char *device = DEFAULT_DEVICE; while((opt = getopt(argc, argv, "ipesd:")) != -1) switch(opt) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message