test: squelch gcc -Wparentheses warning

This commit is contained in:
Bert Belder 2017-12-08 19:25:37 +01:00
parent e358fdc430
commit ed51c0a335
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;