aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpc
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2001-07-15 00:09:46 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2001-07-15 00:09:46 +0000
commit6d39e1b726e54b78521fac365221574a6368a780 (patch)
tree72f0a137b622cd6dc694bb199a12a08fd1b19169 /usr.sbin/lpr/lpc
parent2a57c11a3ae6cc9c8b7f0a757857b55da7bbc23a (diff)
downloadsrc-6d39e1b726e54b78521fac365221574a6368a780.tar.gz
src-6d39e1b726e54b78521fac365221574a6368a780.zip
Fix most of the warnings generated by compiling lpr with -Wnon-const-format,
often by just telling gcc that some internal routine is "__printflike" (work done by Kris Kennaway <kris@FreeBSD.org>). Also fix the new warnings which show up once gcc starts checking the "printf-like parameters" passed to those routines. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=79739
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r--usr.sbin/lpr/lpc/cmds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c
index 8414448d3b79..bc611925e515 100644
--- a/usr.sbin/lpr/lpc/cmds.c
+++ b/usr.sbin/lpr/lpc/cmds.c
@@ -166,7 +166,7 @@ looperr:
case PCAPERR_SUCCESS:
break;
default:
- fatal(pp, pcaperr(cmdstatus));
+ fatal(pp, "%s", pcaperr(cmdstatus));
}
} while (more && cmdstatus);
}
@@ -182,7 +182,7 @@ looperr:
cmdstatus = getprintcap(*argv, pp);
switch (cmdstatus) {
default:
- fatal(pp, pcaperr(cmdstatus));
+ fatal(pp, "%s", pcaperr(cmdstatus));
case PCAPERR_NOTFOUND:
printf("unknown printer %s\n", *argv);
continue;
@@ -700,7 +700,7 @@ looperr:
case PCAPERR_SUCCESS:
break;
default:
- fatal(pp, pcaperr(cmdstatus));
+ fatal(pp, "%s", pcaperr(cmdstatus));
}
} while (more && cmdstatus);
}
@@ -710,7 +710,7 @@ looperr:
cmdstatus = getprintcap(argv[1], pp);
switch (cmdstatus) {
default:
- fatal(pp, pcaperr(cmdstatus));
+ fatal(pp, "%s", pcaperr(cmdstatus));
case PCAPERR_NOTFOUND:
printf("unknown printer %s\n", argv[1]);
return;
@@ -974,7 +974,7 @@ topq(int argc, char *argv[])
cmdstatus = getprintcap(*argv, pp);
switch(cmdstatus) {
default:
- fatal(pp, pcaperr(cmdstatus));
+ fatal(pp, "%s", pcaperr(cmdstatus));
case PCAPERR_NOTFOUND:
printf("unknown printer %s\n", *argv);
return;