summaryrefslogtreecommitdiff
path: root/src/libunixonacid/timed_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/timed_get.c')
-rw-r--r--src/libunixonacid/timed_get.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libunixonacid/timed_get.c b/src/libunixonacid/timed_get.c
index 0a02382..1b4e420 100644
--- a/src/libunixonacid/timed_get.c
+++ b/src/libunixonacid/timed_get.c
@@ -15,8 +15,7 @@ int timed_get (void *b, initfunc_t *getfd, initfunc_t *get, tain_t const *deadli
{
r = iopause_stamp(&x, 1, deadline, stamp) ;
if (!r) return (errno = ETIMEDOUT, -1) ;
- else if (r > 0 && x.revents & (IOPAUSE_READ | IOPAUSE_EXCEPT))
- r = (*get)(b) ;
+ else if (r > 0 && x.revents & (IOPAUSE_READ | IOPAUSE_EXCEPT)) r = (*get)(b) ;
}
return unsanitize_read(r) ;
}