Source-Changes-HG archive

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

[src/trunk]: src/libexec/getNAME fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/d806e4297b0f
branches:  trunk
changeset: 503337:d806e4297b0f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 22:05:13 2001 +0000

description:
fix nested extern

diffstat:

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

diffs (35 lines):

diff -r 64081a88201c -r d806e4297b0f libexec/getNAME/getNAME.c
--- a/libexec/getNAME/getNAME.c Sun Feb 04 22:04:11 2001 +0000
+++ b/libexec/getNAME/getNAME.c Sun Feb 04 22:05:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getNAME.c,v 1.17 1999/11/09 15:06:33 drochner Exp $    */
+/*     $NetBSD: getNAME.c,v 1.18 2001/02/04 22:05:13 christos Exp $    */
 
 /*-
  * Copyright (c) 1997, Christos Zoulas
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)getNAME.c  8.1 (Berkeley) 6/30/93";
 #else
-__RCSID("$NetBSD: getNAME.c,v 1.17 1999/11/09 15:06:33 drochner Exp $");
+__RCSID("$NetBSD: getNAME.c,v 1.18 2001/02/04 22:05:13 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -88,6 +88,8 @@
 /* The .SH NAMEs that are allowed. */
 char *names[] = { "name", "namn", 0 };
 
+extern char *__progname;
+
 int
 main(argc, argv)
        int argc;
@@ -532,7 +534,6 @@
 static void
 usage()
 {
-       extern char *__progname;
        (void)fprintf(stderr, "Usage: %s [-itw] file ...\n", __progname);
        exit(1);
 }



Home | Main Index | Thread Index | Old Index