diff options
author | guenther <> | 2016-03-13 18:34:21 +0000 |
---|---|---|
committer | guenther <> | 2016-03-13 18:34:21 +0000 |
commit | 32c7768b61c95094702adc74eaa693e9f28c61a2 (patch) | |
tree | b5c10fdb5262fbf4e26b8f42490d471382d5bd4e /src/lib/libc/stdlib/setenv.c | |
parent | 2bae55188c77df70108a2fe686cff583e08b7ffb (diff) | |
download | openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.gz openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.tar.bz2 openbsd-32c7768b61c95094702adc74eaa693e9f28c61a2.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 'src/lib/libc/stdlib/setenv.c')
-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 | /* |