diff options
author | joerg <joerg@FreeBSD.org> | 1997-08-23 15:53:00 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-08-23 15:53:00 +0000 |
commit | 92b95fa771e989329f55e3711e94d013df52b434 (patch) | |
tree | 2b872dcb6472d9a72d3ec50a859f544011c3ec27 /usr.sbin/lpr/common_source | |
parent | 9eee91f94a2c8e1b8a3d01497dae78e13b63afa0 (diff) | |
download | FreeBSD-src-92b95fa771e989329f55e3711e94d013df52b434.zip FreeBSD-src-92b95fa771e989329f55e3711e94d013df52b434.tar.gz |
common_source: staticize private version of warn() so to not conflict
with libc's version.
lpd: use getopt(3), err(3), add usage(), allow specification of a port #
on the command line as the documentation suggested for more than 10 years.
PR: docs/3290
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/displayq.c | 3 | ||||
-rw-r--r-- | usr.sbin/lpr/common_source/lp.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index d326e79..4e5f060 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -76,6 +76,7 @@ static char *head0 = "Rank Owner Job Files"; static char *head1 = "Total Size\n"; static void alarmhandler __P((int)); +static void warn __P((void)); /* * Display the current state of the queue. Format = 1 if long format. @@ -257,7 +258,7 @@ displayq(format) /* * Print a warning message if there is no daemon present. */ -void +static void warn() { if (remote) diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h index 0c94372..5fdd7c5 100644 --- a/usr.sbin/lpr/common_source/lp.h +++ b/usr.sbin/lpr/common_source/lp.h @@ -128,6 +128,5 @@ void rmjob __P((void)); void rmremote __P((void)); void show __P((char *, char *, int)); int startdaemon __P((char *)); -void warn __P((void)); void delay __P((int)); __END_DECLS |