Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rtadvd Update getopt string.



details:   https://anonhg.NetBSD.org/src/rev/618c4ee6b513
branches:  trunk
changeset: 931067:618c4ee6b513
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Apr 21 12:21:27 2020 +0000

description:
Update getopt string.

Remove -M. Add -C (the code is there and documented, even if noone could
activate it...).
Sync usage with manpage.

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 3fd25e27eee0 -r 618c4ee6b513 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Tue Apr 21 12:19:44 2020 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Tue Apr 21 12:21:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.73 2020/04/21 12:16:47 roy Exp $  */
+/*     $NetBSD: rtadvd.c,v 1.74 2020/04/21 12:21:27 wiz Exp $  */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -184,7 +184,7 @@
        pid_t pid;
 
        /* get command line options and arguments */
-#define OPTIONS "c:dDfM:p:s"
+#define OPTIONS "Cc:dDfp:s"
        while ((ch = getopt(argc, argv, OPTIONS)) != -1) {
 #undef OPTIONS
                switch (ch) {
@@ -214,8 +214,8 @@
        argc -= optind;
        argv += optind;
        if (argc == 0) {
-               fprintf(stderr, "Ysage: %s [-DdfRs] [-c conffile]"
-                   " [-M ifname] [-p pidfile] interface ...\n", getprogname());
+               fprintf(stderr, "Ysage: %s [-CDdfs] [-c conffile]"
+                   " [-p pidfile] interface ...\n", getprogname());
                return EXIT_FAILURE;
        }
 



Home | Main Index | Thread Index | Old Index