aboutsummaryrefslogtreecommitdiff
path: root/nptl/pt-select.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-select.c')
-rw-r--r--nptl/pt-select.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/nptl/pt-select.c b/nptl/pt-select.c
index 03e10cd08e..cb795c5936 100644
--- a/nptl/pt-select.c
+++ b/nptl/pt-select.c
@@ -28,16 +28,13 @@ int
select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
struct timeval *timeout)
{
- int result;
- int oldtype;
-
- CANCEL_ASYNC (oldtype);
+ int oldtype = CANCEL_ASYNC ();
#if defined INLINE_SYSCALL && defined __NR__newselect
- result = INLINE_SYSCALL (_newselect, 5, nfds, readfds, writefds, exceptfds,
- timeout);
+ int result = INLINE_SYSCALL (_newselect, 5, nfds, readfds, writefds,
+ exceptfds, timeout);
#else
- result = __select (nfds, readfds, writefds, exceptfds, timeout);
+ int result = __select (nfds, readfds, writefds, exceptfds, timeout);
#endif
CANCEL_RESET (oldtype);