summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/pwd_grp.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-06 21:13:03 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-06 21:13:03 +0000
commitc79d5f8bb24be69f963e9ddc139746cde75396be (patch)
treef89a2132e951f0f933c5b0c899f948f322972d89 /libc/pwd_grp/pwd_grp.c
parent95f53957e3dcce2544fd03ca3b314f2bbb6f5b2a (diff)
Oops... don't need recursive mutexes.
Diffstat (limited to 'libc/pwd_grp/pwd_grp.c')
-rw-r--r--libc/pwd_grp/pwd_grp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index da8893eb9..a48901428 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -444,7 +444,7 @@ int getpw(uid_t uid, char *buf)
#ifdef L_getpwent_r
#ifdef __UCLIBC_HAS_THREADS__
-static pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
# define LOCK pthread_mutex_lock(&mylock)
# define UNLOCK pthread_mutex_unlock(&mylock);
#else
@@ -508,7 +508,7 @@ int getpwent_r(struct passwd *__restrict resultbuf,
#ifdef L_getgrent_r
#ifdef __UCLIBC_HAS_THREADS__
-static pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
# define LOCK pthread_mutex_lock(&mylock)
# define UNLOCK pthread_mutex_unlock(&mylock);
#else
@@ -571,7 +571,7 @@ int getgrent_r(struct group *__restrict resultbuf,
#ifdef L_getspent_r
#ifdef __UCLIBC_HAS_THREADS__
-static pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
# define LOCK pthread_mutex_lock(&mylock)
# define UNLOCK pthread_mutex_unlock(&mylock);
#else