Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig fix nested externs



details:   https://anonhg.NetBSD.org/src/rev/827d6d808fdb
branches:  trunk
changeset: 503311:827d6d808fdb
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 20:05:20 2001 +0000

description:
fix nested externs

diffstat:

 sbin/ifconfig/ifconfig.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 79f9eea8d7bd -r 827d6d808fdb sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Sun Feb 04 20:04:02 2001 +0000
+++ b/sbin/ifconfig/ifconfig.c  Sun Feb 04 20:05:20 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.97 2001/01/24 18:06:51 garbled Exp $    */
+/*     $NetBSD: ifconfig.c,v 1.98 2001/02/04 20:05:20 christos Exp $   */
 
 /*-
  * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
 #if 0
 static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
 #else
-__RCSID("$NetBSD: ifconfig.c,v 1.97 2001/01/24 18:06:51 garbled Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.98 2001/02/04 20:05:20 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -381,6 +381,8 @@
 
 struct afswtch *lookup_af __P((const char *));
 
+extern const char *__progname;
+
 int
 main(argc, argv)
        int argc;
@@ -2896,7 +2898,6 @@
 void
 usage()
 {
-       extern const char *__progname;
 
        fprintf(stderr,
            "usage: %s [ -m ] [ -A ] "



Home | Main Index | Thread Index | Old Index