summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-01-27 13:50:16 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-01-27 13:50:16 +0000
commit286c8da4ab187775e6ba583e4a73f0af9166b203 (patch)
tree5c63b01580e14ca58d3bbab29f35364f750d22da
parentc26ff8cfa3907584c79414174b545546e142a681 (diff)
downloadlibapr-286c8da4ab187775e6ba583e4a73f0af9166b203.tar.gz
poll: Follow up to r1897521: struct epoll_event's events field is unsigned int.
EPOLLEXCLUSIVE is 1u << 28 so it doesn't fit in an int16_t, use unsigned for the native epoll events type. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1897548 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poll/unix/epoll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/poll/unix/epoll.c b/poll/unix/epoll.c
index 340f43db8..7e811241d 100644
--- a/poll/unix/epoll.c
+++ b/poll/unix/epoll.c
@@ -25,9 +25,9 @@
#if defined(HAVE_EPOLL)
-static apr_int16_t get_epoll_event(apr_int16_t event)
+static unsigned get_epoll_event(apr_int16_t event)
{
- apr_int16_t rv = 0;
+ unsigned rv = 0;
if (event & APR_POLLIN)
rv |= EPOLLIN;
@@ -44,7 +44,7 @@ static apr_int16_t get_epoll_event(apr_int16_t event)
return rv;
}
-static apr_int16_t get_epoll_revent(apr_int16_t event)
+static apr_int16_t get_epoll_revent(unsigned event)
{
apr_int16_t rv = 0;