summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/loop-watcher.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-03-29 16:10:56 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-29 16:10:56 +0100
commit87f9ece334953bcf0f2d07811728df72cb572ea3 (patch)
tree495dcec91865d6feef451631b2d82f9d547e82fa /deps/uv/src/unix/loop-watcher.c
parent74ef94907277d8aa29d23cef29aee25161960376 (diff)
downloadandroid-node-v8-87f9ece334953bcf0f2d07811728df72cb572ea3.tar.gz
android-node-v8-87f9ece334953bcf0f2d07811728df72cb572ea3.tar.bz2
android-node-v8-87f9ece334953bcf0f2d07811728df72cb572ea3.zip
deps: upgrade libuv to c43e851
Diffstat (limited to 'deps/uv/src/unix/loop-watcher.c')
-rw-r--r--deps/uv/src/unix/loop-watcher.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/uv/src/unix/loop-watcher.c b/deps/uv/src/unix/loop-watcher.c
index a07569e403..4681beb614 100644
--- a/deps/uv/src/unix/loop-watcher.c
+++ b/deps/uv/src/unix/loop-watcher.c
@@ -33,7 +33,7 @@
if (uv__is_active(handle)) return 0; \
if (cb == NULL) \
return uv__set_artificial_error(handle->loop, UV_EINVAL); \
- ngx_queue_insert_head(&handle->loop->name##_handles, &handle->queue); \
+ QUEUE_INSERT_HEAD(&handle->loop->name##_handles, &handle->queue); \
handle->name##_cb = cb; \
uv__handle_start(handle); \
return 0; \
@@ -41,16 +41,16 @@
\
int uv_##name##_stop(uv_##name##_t* handle) { \
if (!uv__is_active(handle)) return 0; \
- ngx_queue_remove(&handle->queue); \
+ QUEUE_REMOVE(&handle->queue); \
uv__handle_stop(handle); \
return 0; \
} \
\
void uv__run_##name(uv_loop_t* loop) { \
uv_##name##_t* h; \
- ngx_queue_t* q; \
- ngx_queue_foreach(q, &loop->name##_handles) { \
- h = ngx_queue_data(q, uv_##name##_t, queue); \
+ QUEUE* q; \
+ QUEUE_FOREACH(q, &loop->name##_handles) { \
+ h = QUEUE_DATA(q, uv_##name##_t, queue); \
h->name##_cb(h, 0); \
} \
} \