Make it compile with older kernel headers.
authordrepper <drepper>
Sun, 27 May 2007 17:56:24 +0000 (17:56 +0000)
committerdrepper <drepper>
Sun, 27 May 2007 17:56:24 +0000 (17:56 +0000)
nptl/init.c

index ff81087..82adeae 100644 (file)
@@ -281,9 +281,9 @@ __pthread_initialize_minimal_internal (void)
      doing the test once this early is beneficial.  */
   {
     int word;
-    res = INTERNAL_SYSCALL (futex, err, 3, &word,
+    word = INTERNAL_SYSCALL (futex, err, 3, &word,
                            FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1);
-    if (!INTERNAL_SYSCALL_ERROR_P (res, err))
+    if (!INTERNAL_SYSCALL_ERROR_P (word, err))
       THREAD_SETMEM (pd, header.private_futex, FUTEX_PRIVATE_FLAG);
   }
 #endif