summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/pac
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1998-09-11 18:49:33 +0000
committerwollman <wollman@FreeBSD.org>1998-09-11 18:49:33 +0000
commitaac5469d30c451307f3e3a8b2356165d289e444a (patch)
tree1b213289729f05f466126dd9e293923a84a7f250 /usr.sbin/lpr/pac
parent37d2c8c237e33bd1be4f6e346e9d1e928b9bfd19 (diff)
downloadFreeBSD-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/pac')
-rw-r--r--usr.sbin/lpr/pac/Makefile4
-rw-r--r--usr.sbin/lpr/pac/pac.c5
2 files changed, 6 insertions, 3 deletions
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 <sys/param.h>
#include <dirent.h>
+#include <err.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#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 *));
OpenPOWER on IntegriCloud