diff options
author | imp <imp@FreeBSD.org> | 2008-09-03 07:03:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-03 07:03:38 +0000 |
commit | cfa9a2ed0ebd90f5e4a9d4198e7031a4b4e7f705 (patch) | |
tree | 322f3180b6058222dc86d8b3df90af3c3ba09f34 /usr.sbin/pciconf | |
parent | ddfbb4fd975fe559ca8779bd26ff8a99c7cd75d6 (diff) | |
download | FreeBSD-src-cfa9a2ed0ebd90f5e4a9d4198e7031a4b4e7f705.zip FreeBSD-src-cfa9a2ed0ebd90f5e4a9d4198e7031a4b4e7f705.tar.gz |
minor style(9) police: sort getopt options alphabetically. The
semi-logical segregation of 'b' and 'h' doesn't seem to make sense and
makes it harder to read.
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r-- | usr.sbin/pciconf/pciconf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index a6ac315..99135f4 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -97,16 +97,24 @@ main(int argc, char **argv) listmode = readmode = writemode = attachedmode = caps = verbose = byte = isshort = 0; - while ((c = getopt(argc, argv, "aclrwbhv")) != -1) { + while ((c = getopt(argc, argv, "abchlrwv")) != -1) { switch(c) { case 'a': attachedmode = 1; break; + case 'b': + byte = 1; + break; + case 'c': caps = 1; break; + case 'h': + isshort = 1; + break; + case 'l': listmode = 1; break; @@ -119,14 +127,6 @@ main(int argc, char **argv) writemode = 1; break; - case 'b': - byte = 1; - break; - - case 'h': - isshort = 1; - break; - case 'v': verbose = 1; break; |