diff options
author | Elliott Hughes <enh@google.com> | 2014-04-22 17:41:00 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-04-22 17:41:00 -0700 |
commit | 58d9e280d459225aa8dc4533e883182b08215f7d (patch) | |
tree | 2c2771dfb1bf95012d13688f8f9142652ba0f9f8 /libc/include/stdlib.h | |
parent | 635edbdf93a127da7db77d9cd174615734b4fb85 (diff) | |
download | android_bionic-58d9e280d459225aa8dc4533e883182b08215f7d.tar.gz android_bionic-58d9e280d459225aa8dc4533e883182b08215f7d.tar.bz2 android_bionic-58d9e280d459225aa8dc4533e883182b08215f7d.zip |
Switch to the upstream OpenBSD getenv/putenv/setenv implementation.
This fixes all the bugs found by the new tests.
Change-Id: Id5a5f9f39a0620208bafa053f871a044725b4795
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r-- | libc/include/stdlib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 58538ffc7..6c966f783 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -46,10 +46,10 @@ extern __noreturn void exit(int); extern __noreturn void _Exit(int); extern int atexit(void (*)(void)); -extern char *getenv(const char *); -extern int putenv(const char *); -extern int setenv(const char *, const char *, int); -extern int unsetenv(const char *); +extern char* getenv(const char*); +extern int putenv(char*); +extern int setenv(const char*, const char*, int); +extern int unsetenv(const char*); extern int clearenv(void); extern char* mkdtemp(char*); |