epoll.c: wrap assignment-in-conditional in double parentheses

This commit is contained in:
Bert Belder 2017-09-01 19:09:42 +02:00
parent f5633093df
commit 5162f578ab

View File

@ -557,7 +557,7 @@ int epoll_close(epoll_t port_handle) {
}
/* Remove all entries from the socket_state tree. */
while (sock_data = RB_ROOT(&port_data->sock_data_tree)) {
while ((sock_data = RB_ROOT(&port_data->sock_data_tree))) {
RB_REMOVE(epoll_sock_data_tree, &port_data->sock_data_tree, sock_data);
if (sock_data->free_io_req != NULL)