summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-18 07:50:22 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-18 07:50:22 +0000
commit6f1e6c22ab67fbb7b5642e142ac3c1f4d6968263 (patch)
tree59470353ab02ae957c0c3cd66cb5deac0dfbf8b7 /libc/stdlib
parent8cd8f955387a7e0c9df9bb302e2a6b807baf39e5 (diff)
Silly name change
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/setenv.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/stdlib/setenv.c b/libc/stdlib/setenv.c
index ef5d84d81..8b7a1bf2d 100644
--- a/libc/stdlib/setenv.c
+++ b/libc/stdlib/setenv.c
@@ -27,11 +27,10 @@
#include <unistd.h>
#ifdef __UCLIBC_HAS_THREADS__
-/* protects against simultaneous modifications of `environ'. */
#include <pthread.h>
-static pthread_mutex_t envlock = PTHREAD_MUTEX_INITIALIZER;
-# define LOCK pthread_mutex_lock(&envlock)
-# define UNLOCK pthread_mutex_unlock(&envlock);
+static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
+# define LOCK pthread_mutex_lock(&mylock)
+# define UNLOCK pthread_mutex_unlock(&mylock);
#else
# define LOCK
# define UNLOCK