Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix up asserts in udp.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed May 23, 2012
1 parent cd2a9b4 commit 2b09cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/udp.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 2b09cc2

Please sign in to comment.