diff options
Diffstat (limited to 'poll/unix/poll.c')
-rw-r--r-- | poll/unix/poll.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index c33157296..de55f3022 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -69,7 +69,7 @@ static apr_int16_t get_revent(apr_int16_t event) #define SMALL_POLLSET_LIMIT 8 APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, apr_int32_t num, - apr_int32_t *nsds, + apr_int32_t *nsds, apr_interval_time_t timeout) { int i, num_to_poll; @@ -129,7 +129,7 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, apr_int32_t num, aprset[i].rtnevents = get_revent(pollset[i].revents); } } - + #if !defined(HAVE_VLA) && !defined(HAVE_ALLOCA) if (num > SMALL_POLLSET_LIMIT) { free(pollset); @@ -160,7 +160,7 @@ static apr_status_t impl_pollset_create(apr_pollset_t *pollset, apr_pool_t *p, apr_uint32_t flags) { - if (flags & APR_POLLSET_THREADSAFE) { + if (flags & APR_POLLSET_THREADSAFE) { return APR_ENOTIMPL; } @@ -355,7 +355,7 @@ static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb, get_event(descriptor->reqevents); pollcb->copyset[pollcb->nelts] = descriptor; pollcb->nelts++; - + return APR_SUCCESS; } @@ -442,7 +442,7 @@ static apr_status_t impl_pollcb_poll(apr_pollcb_t *pollcb, return APR_EINTR; } #endif - pollfd->rtnevents = get_revent(pollcb->pollset.ps[i].revents); + pollfd->rtnevents = get_revent(pollcb->pollset.ps[i].revents); rv = func(baton, pollfd); if (rv) { return rv; |