diff options
author | Rob Landley <rob@landley.net> | 2019-04-21 04:22:31 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-21 04:22:31 -0500 |
commit | 6314cf515cdeca72ab6ecd3423c22f98b6ffb516 (patch) | |
tree | fa217740b17ef8e9a5d6d2fb5c0f7dad527ac252 /lib | |
parent | 4a045c6d6255629f8a50c741c59caac1e2e6b94f (diff) | |
download | toybox-6314cf515cdeca72ab6ecd3423c22f98b6ffb516.tar.gz |
Shouldn't need clearenv() for macosx now we've got xclearenv.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.c | 10 | ||||
-rw-r--r-- | lib/portability.h | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/portability.c b/lib/portability.c index 194d844b..c75e8ba5 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -46,16 +46,6 @@ int xgetrandom(void *buf, unsigned buflen, unsigned flags) return 1; } -#if defined(__APPLE__) -extern char **environ; - -int clearenv(void) -{ - *environ = NULL; - return 0; -} -#endif - // Get a linked list of mount points, with stat information. #if defined(__APPLE__) || defined(__FreeBSD__) diff --git a/lib/portability.h b/lib/portability.h index 6e923611..07160e9d 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -123,8 +123,6 @@ char *strcasestr(const char *haystack, const char *needle); #define bswap_32(x) OSSwapInt32(x) #define bswap_64(x) OSSwapInt64(x) -int clearenv(void); - #elif defined(__FreeBSD__) #include <sys/endian.h> |