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/setenv.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/setenv.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/setenv.c b/src/lib/libc/stdlib/setenv.c index e55a1feb6f..1182abdaa3 100644 --- a/src/lib/libc/stdlib/setenv.c +++ b/src/lib/libc/stdlib/setenv.c  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: setenv.c,v 1.16 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: setenv.c,v 1.17 2016/03/13 18:34:21 guenther Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 1987 Regents of the University of California. | 3 | * Copyright (c) 1987 Regents of the University of California. | 
| 4 | * All rights reserved. | 4 | * All rights reserved. | 
| @@ -32,7 +32,6 @@ | |||
| 32 | #include <stdlib.h> | 32 | #include <stdlib.h> | 
| 33 | #include <string.h> | 33 | #include <string.h> | 
| 34 | 34 | ||
| 35 | extern char **environ; | ||
| 36 | static char **lastenv; /* last value of environ */ | 35 | static char **lastenv; /* last value of environ */ | 
| 37 | 36 | ||
| 38 | /* | 37 | /* | 
