Module Name: src Committed By: wiz Date: Tue Apr 21 12:21:27 UTC 2020
Modified Files: src/usr.sbin/rtadvd: rtadvd.c Log Message: Update getopt string. Remove -M. Add -C (the code is there and documented, even if noone could activate it...). Sync usage with manpage. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/usr.sbin/rtadvd/rtadvd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/rtadvd/rtadvd.c diff -u src/usr.sbin/rtadvd/rtadvd.c:1.73 src/usr.sbin/rtadvd/rtadvd.c:1.74 --- src/usr.sbin/rtadvd/rtadvd.c:1.73 Tue Apr 21 12:16:47 2020 +++ src/usr.sbin/rtadvd/rtadvd.c Tue Apr 21 12:21:27 2020 @@ -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 @@ main(int argc, char *argv[]) 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 @@ main(int argc, char *argv[]) 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; }