summaryrefslogtreecommitdiff
path: root/pthread/pt-join.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread/pt-join.c')
-rw-r--r--pthread/pt-join.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pthread/pt-join.c b/pthread/pt-join.c
index 698b6c9..06e9f1f 100644
--- a/pthread/pt-join.c
+++ b/pthread/pt-join.c
@@ -37,7 +37,8 @@ pthread_join (pthread_t thread, void **status)
return ESRCH;
__pthread_mutex_lock (&pthread->state_lock);
- pthread_cleanup_push (__pthread_mutex_unlock, &pthread->state_lock);
+ pthread_cleanup_push ((void (*)(void *)) __pthread_mutex_unlock,
+ &pthread->state_lock);
while (pthread->state == PTHREAD_JOINABLE)
pthread_cond_wait (&pthread->state_cond, &pthread->state_lock);