From 6314cf515cdeca72ab6ecd3423c22f98b6ffb516 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 21 Apr 2019 04:22:31 -0500 Subject: Shouldn't need clearenv() for macosx now we've got xclearenv. --- lib/portability.c | 10 ---------- lib/portability.h | 2 -- 2 files changed, 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 -- cgit v1.2.3