Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2001 17:58:12 -0400 (EDT)
From:      Mike Barcroft <mike@q9media.com>
To:        audit@FreeBSD.org
Subject:   src/usr.sbin/lptcontrol patch
Message-ID:  <200106232158.f5NLwC589659@coffee.q9media.com>

next in thread | raw e-mail | index | archive | help
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 <bsd.prog.mk>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106232158.f5NLwC589659>