summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2022-01-27 13:50:16 +0000
committerYann Ylavic <ylavic@apache.org>2022-01-27 13:50:16 +0000
commited69b77ae5419f23034d0b95fb37ab992da601fd (patch)
tree5c63b01580e14ca58d3bbab29f35364f750d22da
parentdf4d82325af245e6d56cfd82b6b3587dd9ca8ae9 (diff)
downloadapr-ed69b77ae5419f23034d0b95fb37ab992da601fd.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;