Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/lpr/lpr * Add missing 'break'



details:   https://anonhg.NetBSD.org/src/rev/baf5776d3b0c
branches:  trunk
changeset: 533548:baf5776d3b0c
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 03 22:12:46 2002 +0000

description:
* Add missing 'break'
 * cosmetic update in getoipt string

Patch supplied by Brian Ginsbach <ginsbach%cray.com@localhost> in PR 17473.

diffstat:

 usr.sbin/lpr/lpr/lpr.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r fd962b745827 -r baf5776d3b0c usr.sbin/lpr/lpr/lpr.c
--- a/usr.sbin/lpr/lpr/lpr.c    Wed Jul 03 22:12:38 2002 +0000
+++ b/usr.sbin/lpr/lpr/lpr.c    Wed Jul 03 22:12:46 2002 +0000
@@ -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
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)lpr.c      8.4 (Berkeley) 4/28/95";
 #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 /* not lint */
 
@@ -153,7 +153,7 @@
 
        errs = 0;
        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) {
 
                case '#':               /* n copies */
@@ -162,6 +162,7 @@
                                if (i > 0)
                                        ncopies = i;
                        }
+                       break;
 
                case '4':               /* troff fonts */
                case '3':
@@ -787,6 +788,6 @@
        fprintf(stderr, "%s\n%s\n",
            "usage: lpr [-Pprinter] [-#num] [-C class] [-J job] [-T title] "
            "[-U user]",
-           "[-i[numcols]] [-1234 font] [-wnum] [-cdfghlnmprstv] [name ...]");
+           "[-i[numcols]] [-1234 font] [-wnum] [-cdfghlmnprstv] [name ...]");
        exit(1);
 }



Home | Main Index | Thread Index | Old Index