svn commit: r189079 - stable/7/usr.sbin/pciconf

John Baldwin jhb at FreeBSD.org
Thu Feb 26 11:38:21 PST 2009


Author: jhb
Date: Thu Feb 26 18:46:22 2009
New Revision: 189079
URL: http://svn.freebsd.org/changeset/base/189079

Log:
  MFC: Sort getopt options alphabetically.

Modified:
  stable/7/usr.sbin/pciconf/   (props changed)
  stable/7/usr.sbin/pciconf/pciconf.c

Modified: stable/7/usr.sbin/pciconf/pciconf.c
==============================================================================
--- stable/7/usr.sbin/pciconf/pciconf.c	Thu Feb 26 18:01:07 2009	(r189078)
+++ stable/7/usr.sbin/pciconf/pciconf.c	Thu Feb 26 18:46:22 2009	(r189079)
@@ -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;
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"


More information about the svn-src-stable-7 mailing list