aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_join.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_join.c')
-rw-r--r--nptl/pthread_join.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c
index a223a7d4a3..4edbced2c1 100644
--- a/nptl/pthread_join.c
+++ b/nptl/pthread_join.c
@@ -73,8 +73,7 @@ pthread_join (threadid, thread_return)
pthread_cleanup_push (cleanup, &pd->joinid);
/* Switch to asynchronous cancellation. */
- int oldtype;
- CANCEL_ASYNC (oldtype);
+ int oldtype = CANCEL_ASYNC ();
/* Wait for the child. */