Source-Changes-HG archive

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

[src/trunk]: src/sbin/wdogctl fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/21e122deff0a
branches:  trunk
changeset: 503323:21e122deff0a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 21:14:32 2001 +0000

description:
fix nested extern

diffstat:

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

diffs (29 lines):

diff -r aad8671c5e39 -r 21e122deff0a sbin/wdogctl/wdogctl.c
--- a/sbin/wdogctl/wdogctl.c    Sun Feb 04 21:13:12 2001 +0000
+++ b/sbin/wdogctl/wdogctl.c    Sun Feb 04 21:14:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdogctl.c,v 1.5 2001/01/11 16:37:41 soren Exp $        */
+/*     $NetBSD: wdogctl.c,v 1.6 2001/02/04 21:14:32 christos Exp $     */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -59,6 +59,8 @@
 
 int    Aflag;
 
+extern const char *__progname;
+
 int
 main(int argc, char *argv[])
 {
@@ -343,9 +345,7 @@
 void
 usage(void)
 {
-       extern const char *__progname;
-
-       fprintf(stderr, "usage: %s\n", __progname);
+       fprintf(stderr, "Usage: %s\n", __progname);
        fprintf(stderr, "       %s -k [-A] [-p seconds] timer\n", __progname);
        fprintf(stderr, "       %s -u [-A] [-p seconds] timer\n", __progname);
        fprintf(stderr, "       %s -d\n", __progname);



Home | Main Index | Thread Index | Old Index