Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pcictl Sort options.



details:   https://anonhg.NetBSD.org/src/rev/f12b6b21ed51
branches:  trunk
changeset: 802066:f12b6b21ed51
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Aug 31 09:59:08 2014 +0000

description:
Sort options.

diffstat:

 usr.sbin/pcictl/pcictl.8 |  5 ++---
 usr.sbin/pcictl/pcictl.c |  6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 3f37e6c85ea4 -r f12b6b21ed51 usr.sbin/pcictl/pcictl.8
--- a/usr.sbin/pcictl/pcictl.8  Sun Aug 31 09:16:54 2014 +0000
+++ b/usr.sbin/pcictl/pcictl.8  Sun Aug 31 09:59:08 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pcictl.8,v 1.12 2014/08/31 09:16:54 mrg Exp $
+.\"    $NetBSD: pcictl.8,v 1.13 2014/08/31 09:59:08 wiz Exp $
 .\"
 .\" Copyright 2001 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -55,8 +55,7 @@
 The following commands are available:
 .Pp
 .Cm list
-.Op Fl n
-.Op Fl N
+.Op Fl Nn
 .Op Fl b Ar bus
 .Op Fl d Ar device
 .Op Fl f Ar function
diff -r 3f37e6c85ea4 -r f12b6b21ed51 usr.sbin/pcictl/pcictl.c
--- a/usr.sbin/pcictl/pcictl.c  Sun Aug 31 09:16:54 2014 +0000
+++ b/usr.sbin/pcictl/pcictl.c  Sun Aug 31 09:59:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcictl.c,v 1.19 2014/08/31 09:16:54 mrg Exp $  */
+/*     $NetBSD: pcictl.c,v 1.20 2014/08/31 09:59:08 wiz Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
 
 static const struct command commands[] = {
        { "list",
-         "[-nN] [-b bus] [-d device] [-f function]",
+         "[-Nn] [-b bus] [-d device] [-f function]",
          cmd_list,
          O_RDONLY },
 
@@ -163,7 +163,7 @@
        bus = -1;
        dev = func = -1;
 
-       while ((ch = getopt(argc, argv, "nNb:d:f:")) != -1) {
+       while ((ch = getopt(argc, argv, "b:d:f:Nn")) != -1) {
                switch (ch) {
                case 'b':
                        bus = parse_bdf(optarg);



Home | Main Index | Thread Index | Old Index