Browse Source

Remove recursive lock/unlock for a non-recursive mutex.

Manuel Novoa III 23 years ago
parent
commit
43b3eaffd9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      libc/pwd_grp/pwent.c

+ 1 - 3
libc/pwd_grp/pwent.c

@@ -80,12 +80,10 @@ struct passwd *getpwent(void)
 {
     static char line_buff[PWD_BUFFER_SIZE];
     static struct passwd pwd;
-    LOCK;
+
     if (getpwent_r(&pwd, line_buff, sizeof(line_buff), NULL) != -1) {
-	UNLOCK;
 	return &pwd;
     }
-    UNLOCK;
     return NULL;
 }