From ed69b77ae5419f23034d0b95fb37ab992da601fd Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Thu, 27 Jan 2022 13:50:16 +0000 Subject: 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 --- poll/unix/epoll.c | 6 +++--- 1 file 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; -- cgit v1.2.1