diff options
| author | guenther <> | 2016-03-13 18:34:21 +0000 | 
|---|---|---|
| committer | guenther <> | 2016-03-13 18:34:21 +0000 | 
| commit | 8e31f7b09b8e135e165df08a971ac10c71f4d29a (patch) | |
| tree | b5c10fdb5262fbf4e26b8f42490d471382d5bd4e /src/lib/libc/stdlib/getenv.c | |
| parent | 4f318dbd3fc00556c0c150ffedea1853d3b4c9b4 (diff) | |
| download | openbsd-8e31f7b09b8e135e165df08a971ac10c71f4d29a.tar.gz openbsd-8e31f7b09b8e135e165df08a971ac10c71f4d29a.tar.bz2 openbsd-8e31f7b09b8e135e165df08a971ac10c71f4d29a.zip  | |
environ and __progname are not declared in a public header; declare them
in libc's hidden/stdlib.h instead of in each .c file that needs one
ok deraadt@ gsoares@ mpi@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/getenv.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/getenv.c b/src/lib/libc/stdlib/getenv.c index 6ddad9225a..054497b432 100644 --- a/src/lib/libc/stdlib/getenv.c +++ b/src/lib/libc/stdlib/getenv.c  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getenv.c,v 1.11 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: getenv.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 1987, 1993 | 3 | * Copyright (c) 1987, 1993 | 
| 4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. | 
| @@ -45,7 +45,6 @@ | |||
| 45 | char * | 45 | char * | 
| 46 | __findenv(const char *name, int len, int *offset) | 46 | __findenv(const char *name, int len, int *offset) | 
| 47 | { | 47 | { | 
| 48 | extern char **environ; | ||
| 49 | int i; | 48 | int i; | 
| 50 | const char *np; | 49 | const char *np; | 
| 51 | char **p, *cp; | 50 | char **p, *cp; | 
