svn commit: trunk/uClibc/libpthread/linuxthreads.old

vapier at uclibc.org vapier at uclibc.org
Thu Dec 29 08:13:36 UTC 2005


Author: vapier
Date: 2005-12-29 00:13:32 -0800 (Thu, 29 Dec 2005)
New Revision: 13009

Log:
sync whitespace with glibc

Modified:
   trunk/uClibc/libpthread/linuxthreads.old/specific.c


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/specific.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/specific.c	2005-12-29 07:15:39 UTC (rev 13008)
+++ trunk/uClibc/libpthread/linuxthreads.old/specific.c	2005-12-29 08:13:32 UTC (rev 13009)
@@ -24,7 +24,6 @@
 #include "spinlock.h"
 #include "restart.h"
 
-
 /* Table of keys. */
 
 static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] =
@@ -42,21 +41,21 @@
 
 int pthread_key_create(pthread_key_t * key, destr_function destr)
 {
-    int i;
+  int i;
 
-    pthread_mutex_lock(&pthread_keys_mutex);
-    for (i = 0; i < PTHREAD_KEYS_MAX; i++) {
-	if (! pthread_keys[i].in_use) {
-	    /* Mark key in use */
-	    pthread_keys[i].in_use = 1;
-	    pthread_keys[i].destr = destr;
-	    pthread_mutex_unlock(&pthread_keys_mutex);
-	    *key = i;
-	    return 0;
-	}
+  pthread_mutex_lock(&pthread_keys_mutex);
+  for (i = 0; i < PTHREAD_KEYS_MAX; i++) {
+    if (! pthread_keys[i].in_use) {
+      /* Mark key in use */
+      pthread_keys[i].in_use = 1;
+      pthread_keys[i].destr = destr;
+      pthread_mutex_unlock(&pthread_keys_mutex);
+      *key = i;
+      return 0;
     }
-    pthread_mutex_unlock(&pthread_keys_mutex);
-    return EAGAIN;
+  }
+  pthread_mutex_unlock(&pthread_keys_mutex);
+  return EAGAIN;
 }
 
 /* Delete a key */




More information about the uClibc-cvs mailing list