diff options
author | wollman <wollman@FreeBSD.org> | 1998-09-11 18:49:33 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1998-09-11 18:49:33 +0000 |
commit | aac5469d30c451307f3e3a8b2356165d289e444a (patch) | |
tree | 1b213289729f05f466126dd9e293923a84a7f250 /usr.sbin/lpr/common_source | |
parent | 37d2c8c237e33bd1be4f6e346e9d1e928b9bfd19 (diff) | |
download | FreeBSD-src-aac5469d30c451307f3e3a8b2356165d289e444a.zip FreeBSD-src-aac5469d30c451307f3e3a8b2356165d289e444a.tar.gz |
Fix additional warnings. Remove -Werror, since some people have complained
about it.
PR: 7886
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> (partially)
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/Makefile | 5 | ||||
-rw-r--r-- | usr.sbin/lpr/common_source/common.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/lpr/common_source/Makefile b/usr.sbin/lpr/common_source/Makefile index 6e76588..a9d7bfc 100644 --- a/usr.sbin/lpr/common_source/Makefile +++ b/usr.sbin/lpr/common_source/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.2 1998/05/13 06:49:19 jb Exp $ +# $Id: Makefile,v 1.3 1998/06/11 03:53:23 jb Exp $ # # Library of internal routines for the print spooler suite. @@ -11,8 +11,7 @@ SRCS= common.c displayq.c net.c printcap.c request.c rmjob.c \ NOMAN= noman NOPROFILE= noprofile NOPIC= nopic -CFLAGS+= -Wall -Wnested-externs -Wmissing-prototypes \ - -Wstrict-prototypes -Wredundant-decls +CFLAGS+= ${CWARNFLAGS} install: diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 8cfacab..be95dc7 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -41,7 +41,7 @@ static char sccsid[] = "@(#)common.c 8.5 (Berkeley) 4/28/95"; */ static const char rcsid[] = - "$Id$"; + "$Id: common.c,v 1.10 1997/12/02 20:45:18 wollman Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -79,7 +79,7 @@ getline(cfp) { register int linel = 0; register char *lp = line; - register c; + register int c; while ((c = getc(cfp)) != '\n' && linel+1 < sizeof(line)) { if (c == EOF) |