Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/wlanctl remove -v no/op



details:   https://anonhg.NetBSD.org/src/rev/4840d34f7af4
branches:  trunk
changeset: 795650:4840d34f7af4
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 22 15:55:16 2014 +0000

description:
remove -v no/op

diffstat:

 usr.sbin/wlanctl/wlanctl.c |  17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diffs (59 lines):

diff -r 66faa9db34ef -r 4840d34f7af4 usr.sbin/wlanctl/wlanctl.c
--- a/usr.sbin/wlanctl/wlanctl.c        Tue Apr 22 15:49:14 2014 +0000
+++ b/usr.sbin/wlanctl/wlanctl.c        Tue Apr 22 15:55:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wlanctl.c,v 1.13 2011/08/31 13:32:41 joerg Exp $ */
+/* $NetBSD: wlanctl.c,v 1.14 2014/04/22 15:55:16 christos Exp $ */
 /*-
  * Copyright (c) 2005 David Young.  All rights reserved.
  *
@@ -56,7 +56,6 @@
 };
 
 struct cmdflags {
-       int     cf_v;   /* verbose */
        int     cf_a;   /* all 802.11 interfaces */
        int     cf_p;   /* public (i.e. non-private) dests */
 };
@@ -179,7 +178,8 @@
  * hdr_type: header type: IEEE80211_SYSCTL_T_NODE -> generic node,
  *                        IEEE80211_SYSCTL_T_RSSADAPT -> rssadapt(9) info,
  *                        IEEE80211_SYSCTL_T_DRVSPEC -> driver specific.
- * cf:       command flags, cf_v != 0 -> verbose
+ * cf:       command flags: cf_a != 0 -> all 802.11 interfaces
+ *                          cf_p != 0 -> public dests
  */
 static int
 dump_nodes(const char *ifname_arg, int hdr_type, struct cmdflags *cf)
@@ -287,8 +287,10 @@
 static void
 usage(void)
 {
-       fprintf(stderr, "usage: %s [ -p ] [ -v ] -a\n"
-           "\t[ -v ] interface [ interface ... ]\n", getprogname());
+       fprintf(stderr,
+           "Usage: %s [ -p ] -a\n"
+           "       %s [ -p ] interface [ interface ... ]\n",
+           getprogname(), getprogname());
        exit(EXIT_FAILURE);
 }
 
@@ -299,7 +301,7 @@
 
        (void)memset(cf, 0, sizeof(*cf));
 
-       while ((ch = getopt(*argcp, *argvp, "apv")) != -1) {
+       while ((ch = getopt(*argcp, *argvp, "ap")) != -1) {
                switch (ch) {
                case 'a':
                        cf->cf_a = 1;
@@ -307,9 +309,6 @@
                case 'p':
                        cf->cf_p = 1;
                        break;
-               case 'v':
-                       cf->cf_v = 1;
-                       break;
                default:
                        warnx("unknown option -%c", ch);
                        usage();



Home | Main Index | Thread Index | Old Index