浏览代码

Silly name change

Eric Andersen 23 年之前
父节点
当前提交
6f1e6c22ab
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      libc/stdlib/setenv.c

+ 3 - 4
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