diff options
author | gad <gad@FreeBSD.org> | 2001-06-12 16:38:20 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2001-06-12 16:38:20 +0000 |
commit | d61428321f0ceb41de748a616b592b50195c51fb (patch) | |
tree | 115b09aed7f19dda18dbe2e66eba92a08b0d2441 /usr.sbin/lpr/lprm | |
parent | b39990d7f9947621a844c7a4936eeb286a471c47 (diff) | |
download | FreeBSD-src-d61428321f0ceb41de748a616b592b50195c51fb.zip FreeBSD-src-d61428321f0ceb41de748a616b592b50195c51fb.tar.gz |
Fix about 90-100 warnings one gets when trying to compile lpr&friends
with BDECFLAGS on, mainly by adding 'const' to parameters in a number
of routine declarations. While I'm at it, ANSI-fy all of the routine
declarations. The resulting object code is exactly the same after
this update as before it, with the exception of one unavoidable
change to lpd.o on freebsd/alpha.
Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c
Reviewed by: /sbin/md5, and no feedback from freebsd-audit
Diffstat (limited to 'usr.sbin/lpr/lprm')
-rw-r--r-- | usr.sbin/lpr/lprm/lprm.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c index ca52f5d..168430f 100644 --- a/usr.sbin/lpr/lprm/lprm.c +++ b/usr.sbin/lpr/lprm/lprm.c @@ -82,15 +82,14 @@ uid_t uid, euid; /* real and effective user id's */ static char luser[16]; /* buffer for person */ -int main __P((int, char *[])); -static void usage __P((void)); +int main(int argc, char *_argv[]); +static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { - char *arg, *printer; + char *arg; + const char *printer; struct passwd *p; static char root[] = "root"; @@ -158,7 +157,7 @@ main(argc, argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: lprm [-] [-Pprinter] [[job #] [user] ...]\n"); exit(2); |