diff options
Diffstat (limited to 'nptl/pt-poll.c')
-rw-r--r-- | nptl/pt-poll.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/nptl/pt-poll.c b/nptl/pt-poll.c index 65da7e6434..53b432bc7e 100644 --- a/nptl/pt-poll.c +++ b/nptl/pt-poll.c @@ -27,15 +27,12 @@ int poll (struct pollfd *fds, nfds_t nfds, int timeout) { - int result; - int oldtype; - - CANCEL_ASYNC (oldtype); + int oldtype =CANCEL_ASYNC (); #ifdef INLINE_SYSCALL - result = INLINE_SYSCALL (poll, 3, fds, nfds, timeout); + int result = INLINE_SYSCALL (poll, 3, fds, nfds, timeout); #else - result = __poll (fds, nfds, timeout); + int result = __poll (fds, nfds, timeout); #endif CANCEL_RESET (oldtype); |