* hppa.h (pa_opcodes): Use "cX" completer instead of "cx" in fstqx
[external/binutils.git] / gdb / testsuite / gdb.threads / linux-dp.c
index b66649b..a57938d 100644 (file)
@@ -71,11 +71,10 @@ shared_printf (char *format, ...)
 int 
 shared_random ()
 {
-  static unsigned int seed;
   int result;
 
   pthread_mutex_lock (&random_mutex);
-  result = rand_r (&seed);
+  result = rand ();
   pthread_mutex_unlock (&random_mutex);
   return result;
 }
@@ -153,6 +152,8 @@ philosopher (void *data)
        pthread_mutex_unlock (&fork_mutex[(n + 1) % num_philosophers]);
        random_delay ();
       }
+
+  return (void *) 0;
 }
 
 int