aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-rwlock14.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-rwlock14.c')
-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 b9611a8..fc0d3d2 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;
}