summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpq
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2001-07-15 00:09:46 +0000
committergad <gad@FreeBSD.org>2001-07-15 00:09:46 +0000
commit75f5203b04d78ac555161bc219da58cbfeffefbd (patch)
tree72f0a137b622cd6dc694bb199a12a08fd1b19169 /usr.sbin/lpr/lpq
parentc37f9bf14e59460fb949e607da4073e223e0972d (diff)
downloadFreeBSD-src-75f5203b04d78ac555161bc219da58cbfeffefbd.zip
FreeBSD-src-75f5203b04d78ac555161bc219da58cbfeffefbd.tar.gz
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
Diffstat (limited to 'usr.sbin/lpr/lpq')
-rw-r--r--usr.sbin/lpr/lpq/lpq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c
index 96f5d8e..734750d 100644
--- a/usr.sbin/lpr/lpq/lpq.c
+++ b/usr.sbin/lpr/lpq/lpq.c
@@ -152,7 +152,7 @@ looperr:
case PCAPERR_SUCCESS:
break;
default:
- fatal(pp, pcaperr(status));
+ fatal(pp, "%s", pcaperr(status));
}
} while (more && status);
}
@@ -162,7 +162,7 @@ looperr:
init_printer(pp);
status = getprintcap(printer, pp);
if (status < 0)
- fatal(pp, pcaperr(status));
+ fatal(pp, "%s", pcaperr(status));
displayq(pp, lflag);
}
OpenPOWER on IntegriCloud