NetBSD-Bugs archive

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

bin/45744: sbin/disklabel/main.c defines unused getopt-arguments



>Number:         45744
>Category:       bin
>Synopsis:       sbin/disklabel/main.c defines unused getopt-arguments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 26 21:05:00 +0000 2011
>Originator:     Julian Fagir
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
sbin/disklabel/main.c defines 'b:' and 's:' options that are not used.
>How-To-Repeat:
Look at sbin/disklabel/main.c line 288.
>Fix:
$ fossil diff main.c 
--- main.c
+++ main.c
@@ -283,11 +283,11 @@
        /* We must avoid doing any ioctl requests */
        Fflag = rflag = 1;
 #endif
 
        error = 0;
-       while ((ch = getopt(argc, argv, "ACDFINRWb:ef:ilmrs:tvw")) != -1) {
+       while ((ch = getopt(argc, argv, "ACDFINRWef:ilmrtvw")) != -1) {
                old_op = op;
                switch (ch) {
                case 'A':       /* Action all labels */
                        Aflag = 1;
                        rflag = 1;



Home | Main Index | Thread Index | Old Index