summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-09-03 07:03:38 +0000
committerimp <imp@FreeBSD.org>2008-09-03 07:03:38 +0000
commitcfa9a2ed0ebd90f5e4a9d4198e7031a4b4e7f705 (patch)
tree322f3180b6058222dc86d8b3df90af3c3ba09f34 /usr.sbin/pciconf
parentddfbb4fd975fe559ca8779bd26ff8a99c7cd75d6 (diff)
downloadFreeBSD-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.c18
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;
OpenPOWER on IntegriCloud