From 2b09cc2246a339ffd36ced6b9c79916e08353389 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 23 May 2012 21:08:40 +0200 Subject: [PATCH] unix: fix up asserts in udp.c --- src/unix/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/udp.c b/src/unix/udp.c index a9c03066a..4e2d9fd88 100644 --- a/src/unix/udp.c +++ b/src/unix/udp.c @@ -224,7 +224,7 @@ static void uv__udp_recvmsg(uv_loop_t* loop, uv__io_t* w, int revents) { handle = container_of(w, uv_udp_t, read_watcher); assert(handle->type == UV_UDP); - assert(revents & EV_READ); + assert(revents & UV__IO_READ); assert(handle->recv_cb != NULL); assert(handle->alloc_cb != NULL); @@ -281,7 +281,7 @@ static void uv__udp_sendmsg(uv_loop_t* loop, uv__io_t* w, int revents) { handle = container_of(w, uv_udp_t, write_watcher); assert(handle->type == UV_UDP); - assert(revents & EV_WRITE); + assert(revents & UV__IO_WRITE); assert(!ngx_queue_empty(&handle->write_queue) || !ngx_queue_empty(&handle->write_completed_queue));