diff options
| author | christos <christos@NetBSD.org> | 2000-12-20 18:38:30 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2000-12-20 18:38:30 +0000 |
| commit | 6bae1e9ae7abcea95138127c6b4c2ea89130bb1f (patch) | |
| tree | 40ecc7e65a011e2db0b608d58ad27d505c66b7a3 /lib/libc/stdlib | |
| parent | b87a6ffa85c4f52346eae2a07e8eee4c7a560b7d (diff) | |
avoid nested extern declaration
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/setenv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 5156ccddfc3..a4e8db55449 100644 --- a/lib/libc/stdlib/setenv.c +++ b/lib/libc/stdlib/setenv.c @@ -1,4 +1,4 @@ -/* $NetBSD: setenv.c,v 1.18 2000/01/22 22:19:20 mycroft Exp $ */ +/* $NetBSD: setenv.c,v 1.19 2000/12/20 18:38:30 christos Exp $ */ /* * Copyright (c) 1987, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)setenv.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: setenv.c,v 1.18 2000/01/22 22:19:20 mycroft Exp $"); +__RCSID("$NetBSD: setenv.c,v 1.19 2000/12/20 18:38:30 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -60,6 +60,8 @@ __weak_alias(unsetenv,_unsetenv) extern rwlock_t __environ_lock; #endif +extern char **environ; + /* * setenv -- * Set the value of the environmental variable "name" to be @@ -71,7 +73,6 @@ setenv(name, value, rewrite) const char *value; int rewrite; { - extern char **environ; static int alloced; /* if allocated space before */ char *c; const char *cc; @@ -142,7 +143,6 @@ void unsetenv(name) const char *name; { - extern char **environ; char **p; int offset; |
