Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdlib fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/f31ad6b3e2c9
branches:  trunk
changeset: 500916:f31ad6b3e2c9
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 20 15:59:51 2000 +0000

description:
fix nested extern

diffstat:

 lib/libc/stdlib/getopt.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r ebc8d0ecf8aa -r f31ad6b3e2c9 lib/libc/stdlib/getopt.c
--- a/lib/libc/stdlib/getopt.c  Wed Dec 20 15:49:03 2000 +0000
+++ b/lib/libc/stdlib/getopt.c  Wed Dec 20 15:59:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt.c,v 1.17 2000/01/22 22:19:19 mycroft Exp $      */
+/*     $NetBSD: getopt.c,v 1.18 2000/12/20 15:59:51 christos Exp $     */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getopt.c   8.3 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: getopt.c,v 1.17 2000/01/22 22:19:19 mycroft Exp $");
+__RCSID("$NetBSD: getopt.c,v 1.18 2000/12/20 15:59:51 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -54,6 +54,8 @@
 __weak_alias(getopt,_getopt)
 #endif
 
+extern char *__progname;
+
 
 int    opterr = 1,             /* if error message should be printed */
        optind = 1,             /* index into parent argv vector */
@@ -75,7 +77,6 @@
        char * const nargv[];
        const char *ostr;
 {
-       extern char *__progname;
        static char *place = EMSG;              /* option letter processing */
        char *oli;                              /* option letter list index */
 



Home | Main Index | Thread Index | Old Index