summaryrefslogtreecommitdiff
path: root/nptl/pt-sigtimedwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-sigtimedwait.c')
-rw-r--r--nptl/pt-sigtimedwait.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/nptl/pt-sigtimedwait.c b/nptl/pt-sigtimedwait.c
index c2940f397e..f2a00d4c88 100644
--- a/nptl/pt-sigtimedwait.c
+++ b/nptl/pt-sigtimedwait.c
@@ -28,15 +28,13 @@ int
sigtimedwait (const sigset_t *set, siginfo_t *info,
const struct timespec *timeout)
{
- int result;
- int oldtype;
-
- CANCEL_ASYNC (oldtype);
+ int oldtype = CANCEL_ASYNC ();
#ifdef INLINE_SYSCALL
- result = INLINE_SYSCALL (rt_sigtimedwait, 4, set, info, timeout, _NSIG / 8);
+ int result = INLINE_SYSCALL (rt_sigtimedwait, 4, set, info, timeout,
+ _NSIG / 8);
#else
- result = __sigtimedwait (set, info, timeout);
+ int result = __sigtimedwait (set, info, timeout);
#endif
CANCEL_RESET (oldtype);