about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-08-11 18:51:13 +0000
committerRoland McGrath <roland@gnu.org>2004-08-11 18:51:13 +0000
commit3cabdafafa0cd42a86a63affd5d4fee2c10cfbf5 (patch)
tree9a9529bacbe91dc310c2ab8ea75758aec2a61be7 /nptl
parent304815c6b460729e7b62a857394c6a009bcff30e (diff)
downloadglibc-3cabdafafa0cd42a86a63affd5d4fee2c10cfbf5.tar.gz
glibc-3cabdafafa0cd42a86a63affd5d4fee2c10cfbf5.tar.xz
glibc-3cabdafafa0cd42a86a63affd5d4fee2c10cfbf5.zip
* sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
	attribute.  Return NULL instead of calling pthread_exit at the end.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/tst-rwlock14.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nptl/tst-rwlock14.c b/nptl/tst-rwlock14.c
index b9611a81f0..fc0d3d219f 100644
--- a/nptl/tst-rwlock14.c
+++ b/nptl/tst-rwlock14.c
@@ -38,12 +38,12 @@ tf (void *arg)
       exit (EXIT_FAILURE);
     }
 
-  pthread_barrier_wait (&b);
+  pthread_t mt = *(pthread_t *) arg;
 
-  pthread_t *mtp = (pthread_t *) arg;
+  pthread_barrier_wait (&b);
 
   /* This call will never return.  */
-  pthread_join (*mtp, NULL);
+  pthread_join (mt, NULL);
 
   return NULL;
 }