Date: Thu, 26 Feb 2009 18:46:22 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r189079 - stable/7/usr.sbin/pciconf Message-ID: <200902261846.n1QIkMZp035219@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902261846.n1QIkMZp035219>