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 declaration.



details:   https://anonhg.NetBSD.org/src/rev/271eb76ba858
branches:  trunk
changeset: 500869:271eb76ba858
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 19 21:17:37 2000 +0000

description:
fix nested extern declaration.

diffstat:

 lib/libc/stdlib/getenv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 1b9b7bc60ff1 -r 271eb76ba858 lib/libc/stdlib/getenv.c
--- a/lib/libc/stdlib/getenv.c  Tue Dec 19 21:17:16 2000 +0000
+++ b/lib/libc/stdlib/getenv.c  Tue Dec 19 21:17:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getenv.c,v 1.14 1999/09/20 04:39:37 lukem Exp $        */
+/*     $NetBSD: getenv.c,v 1.15 2000/12/19 21:17:37 christos Exp $     */
 
 /*
  * Copyright (c) 1987, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getenv.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: getenv.c,v 1.14 1999/09/20 04:39:37 lukem Exp $");
+__RCSID("$NetBSD: getenv.c,v 1.15 2000/12/19 21:17:37 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -52,6 +52,7 @@
 #ifdef _REENT
 rwlock_t __environ_lock = RWLOCK_INITIALIZER;
 #endif
+extern char **environ;
 
 /*
  * getenv --
@@ -86,7 +87,6 @@
        const char *name;
        int *offset;
 {
-       extern char **environ;
        size_t len;
        const char *np;
        char **p, *c;



Home | Main Index | Thread Index | Old Index