]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put lower-case letters before their upper-case equivalents in getopt().
authorGuy Harris <[email protected]>
Fri, 18 Oct 2013 22:45:37 +0000 (15:45 -0700)
committerGuy Harris <[email protected]>
Fri, 18 Oct 2013 22:45:37 +0000 (15:45 -0700)
For consistency - V came before v, unlike all other options.

tcpdump.c

index 2a4e17c8f0e24096af2c9ee03e955e34be202e1d..739f9c8ae859296a3348a03659fe3b3016a2b75b 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -747,7 +747,7 @@ main(int argc, char **argv)
 #endif
 
        while (
-           (op = getopt(argc, argv, "aAb" B_FLAG "c:C:d" D_FLAG "eE:fF:G:hHi:" I_FLAG j_FLAG J_FLAG "KlLm:M:nNOp" P_FLAG "qr:Rs:StT:u" U_FLAG "V:vw:W:xXy:Yz:Z:")) != -1)
+           (op = getopt(argc, argv, "aAb" B_FLAG "c:C:d" D_FLAG "eE:fF:G:hHi:" I_FLAG j_FLAG J_FLAG "KlLm:M:nNOp" P_FLAG "qr:Rs:StT:u" U_FLAG "vV:w:W:xXy:Yz:Z:")) != -1)
                switch (op) {
 
                case 'a':