diff options
author | imp <imp@FreeBSD.org> | 1997-07-29 13:24:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-07-29 13:24:01 +0000 |
commit | 2f9d4f24114eb44bfde492debae4196f2127b888 (patch) | |
tree | c88cde887a350ef06b19b3df147ebcd1d121816e /usr.sbin/lpr/lpc | |
parent | f827c62c9475af527049150cf7d9a49b7de4a320 (diff) | |
download | FreeBSD-src-2f9d4f24114eb44bfde492debae4196f2127b888.zip FreeBSD-src-2f9d4f24114eb44bfde492debae4196f2127b888.tar.gz |
Two minor, pedantic fixes from bde for my last pedantic fixes, plus
the following from recent OpenBSD changes. These changes (and all
I've made) should be merged back into 2.2 when they are vetted in
-current.
common.c:
OpenBSD 1.7: mickey: #if __STDC__ --> #ifdef __STDC__
displayq.c:
OpenBSD 1.8: deraadt: 1 byte oflows; millert
rmjob.c:
OpenBSD 1.8: deraadt: 1 byte oflows; millert
cmds.c:
OpenBSD 1.9: grr: restore traditional "all" keyword option - see lpc(8)
[[ This makes lpc status all work again -- imp ]]
printjob.c:
OpenBSD 1.17: deraadt: use sendmail -t
OpenBSD 1.16: mickey: #if __STDC__ --> #ifdef __STDC__
OpenBSD 1.15: deraadt: 1 byte oflow; Don.Lewis@tsc.tdk.com
recvjob.c:
OpenBSD 1.11: mickey: #if __STDC__ --> #ifdef __STDC__
lpr.c:
OpenBSD 1.19: mickey: #if __STDC__ --> #ifdef __STDC__
Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index b772ed3..07ac45a 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -771,7 +771,7 @@ status(argc, argv) register char *cp1, *cp2; char prbuf[100]; - if (argc == 1) { + if (argc == 1 || argc == 2 && !strcmp(argv[1], "all")) { printer = prbuf; while (cgetnext(&bp, printcapdb) > 0) { cp1 = prbuf; |