From 92b95fa771e989329f55e3711e94d013df52b434 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 23 Aug 1997 15:53:00 +0000 Subject: 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 --- usr.sbin/lpr/common_source/displayq.c | 3 ++- usr.sbin/lpr/common_source/lp.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/lpr/common_source') 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 -- cgit v1.1