From aac5469d30c451307f3e3a8b2356165d289e444a Mon Sep 17 00:00:00 2001 From: wollman Date: Fri, 11 Sep 1998 18:49:33 +0000 Subject: Fix additional warnings. Remove -Werror, since some people have complained about it. PR: 7886 Submitted by: Stefan Eggers (partially) --- usr.sbin/lpr/pac/Makefile | 4 ++-- usr.sbin/lpr/pac/pac.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.sbin/lpr/pac') diff --git a/usr.sbin/lpr/pac/Makefile b/usr.sbin/lpr/pac/Makefile index 9e0b03f..41105db 100644 --- a/usr.sbin/lpr/pac/Makefile +++ b/usr.sbin/lpr/pac/Makefile @@ -1,8 +1,8 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/6/93 -# $Id: Makefile,v 1.4 1997/12/16 17:53:39 bde Exp $ +# $Id: Makefile,v 1.5 1998/03/07 09:48:14 bde Exp $ PROG= pac -CFLAGS+=-I${.CURDIR}/../common_source +CFLAGS+=-I${.CURDIR}/../common_source ${CWARNFLAGS} MAN8= pac.8 .PATH: ${.CURDIR}/../common_source DPADD= ${LIBLPR} diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index bfb0f51..727c67f 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -43,7 +43,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pac.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: pac.c,v 1.7 1997/09/24 06:48:24 charnier Exp $"; + "$Id: pac.c,v 1.8 1997/12/02 20:46:22 wollman Exp $"; #endif /* not lint */ /* @@ -56,9 +56,11 @@ static const char rcsid[] = #include #include +#include #include #include #include +#include #include "lp.h" #include "lp.local.h" @@ -94,6 +96,7 @@ struct hent { static struct hent *hashtab[HSHSIZE]; /* Hash table proper */ +int main __P((int, char **)); static void account __P((FILE *)); static int any __P((int, char [])); static int chkprinter __P((char *)); -- cgit v1.1