* Add missing 'break'
* cosmetic update in getoipt string Patch supplied by Brian Ginsbach <ginsbach@cray.com> in PR 17473.
This commit is contained in:
parent
84d465bb02
commit
1b7f271a58
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: lpr.c,v 1.21 2002/06/08 23:43:24 itojun Exp $ */
|
/* $NetBSD: lpr.c,v 1.22 2002/07/03 22:12:46 hubertf Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1983, 1989, 1993
|
* Copyright (c) 1983, 1989, 1993
|
||||||
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: lpr.c,v 1.21 2002/06/08 23:43:24 itojun Exp $");
|
__RCSID("$NetBSD: lpr.c,v 1.22 2002/07/03 22:12:46 hubertf Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ main(argc, argv)
|
|||||||
|
|
||||||
errs = 0;
|
errs = 0;
|
||||||
while ((c = getopt(argc, argv,
|
while ((c = getopt(argc, argv,
|
||||||
":#:1:2:3:4:C:J:P:T:U:cdfghi:lnmprstvw:")) != -1) {
|
":#:1:2:3:4:C:J:P:T:U:cdfghi:lmnprstvw:")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
||||||
case '#': /* n copies */
|
case '#': /* n copies */
|
||||||
@ -162,6 +162,7 @@ main(argc, argv)
|
|||||||
if (i > 0)
|
if (i > 0)
|
||||||
ncopies = i;
|
ncopies = i;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case '4': /* troff fonts */
|
case '4': /* troff fonts */
|
||||||
case '3':
|
case '3':
|
||||||
@ -787,6 +788,6 @@ usage()
|
|||||||
fprintf(stderr, "%s\n%s\n",
|
fprintf(stderr, "%s\n%s\n",
|
||||||
"usage: lpr [-Pprinter] [-#num] [-C class] [-J job] [-T title] "
|
"usage: lpr [-Pprinter] [-#num] [-C class] [-J job] [-T title] "
|
||||||
"[-U user]",
|
"[-U user]",
|
||||||
"[-i[numcols]] [-1234 font] [-wnum] [-cdfghlnmprstv] [name ...]");
|
"[-i[numcols]] [-1234 font] [-wnum] [-cdfghlmnprstv] [name ...]");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user