diff --git a/test/test-ctl-fuzz.c b/test/test-ctl-fuzz.c index 1e68c7e..9b45909 100644 --- a/test/test-ctl-fuzz.c +++ b/test/test-ctl-fuzz.c @@ -62,7 +62,7 @@ int main(void) { SOCKET sock = sockets[i]; struct epoll_event ev_in; - ev_in.events = rand() & 0xff | EPOLLONESHOT; + ev_in.events = (rand() & 0xff) | EPOLLONESHOT; ev_in.data.u64 = 42; r = epoll_ctl(epfd, EPOLL_CTL_MOD, sock, &ev_in); diff --git a/test/test-udp-pings.c b/test/test-udp-pings.c index b628ccf..90b2b7d 100644 --- a/test/test-udp-pings.c +++ b/test/test-udp-pings.c @@ -140,7 +140,7 @@ int main(void) { pings_sent++; - uint32_t rev = rand() & 0xff | EPOLLOUT | EPOLLONESHOT; + uint32_t rev = EPOLLOUT | EPOLLONESHOT; struct epoll_event e; e.data.sock = sock; e.events = rev;