Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mld6query usage: Add -d and -r. Use getprogname().



details:   https://anonhg.NetBSD.org/src/rev/83d286297c1c
branches:  trunk
changeset: 571319:83d286297c1c
user:      hira <hira%NetBSD.org@localhost>
date:      Wed Nov 17 13:35:32 2004 +0000

description:
usage: Add -d and -r.  Use getprogname().
Reviewed by uebayasi@.  This closes PR bin/26686.

diffstat:

 usr.sbin/mld6query/mld6.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 47abaeaf5263 -r 83d286297c1c usr.sbin/mld6query/mld6.c
--- a/usr.sbin/mld6query/mld6.c Wed Nov 17 13:32:16 2004 +0000
+++ b/usr.sbin/mld6query/mld6.c Wed Nov 17 13:35:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mld6.c,v 1.10 2003/06/06 08:13:44 itojun Exp $ */
+/*     $NetBSD: mld6.c,v 1.11 2004/11/17 13:35:32 hira Exp $   */
 /*     $KAME: mld6.c,v 1.9 2000/12/04 06:29:37 itojun Exp $    */
 
 /*
@@ -301,6 +301,6 @@
 void
 usage()
 {
-       (void)fprintf(stderr, "usage: mld6query ifname [addr]\n");
+       (void)fprintf(stderr, "usage: %s [-dr] ifname [addr]\n", getprogname());
        exit(1);
 }



Home | Main Index | Thread Index | Old Index