summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/tcp.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-03-14 13:40:27 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-14 15:55:26 +0100
commite99dff461772ea16586448667860edd13b4190e4 (patch)
tree728e0b8b3aa7e44df46cce42c0f6310e7ea426d1 /deps/uv/src/unix/tcp.c
parent028c630ecd920d59fc0e8ad295e0fe0eac8e1ef1 (diff)
downloadandroid-node-v8-e99dff461772ea16586448667860edd13b4190e4.tar.gz
android-node-v8-e99dff461772ea16586448667860edd13b4190e4.tar.bz2
android-node-v8-e99dff461772ea16586448667860edd13b4190e4.zip
deps: upgrade libuv to 7b66ea1
Diffstat (limited to 'deps/uv/src/unix/tcp.c')
-rw-r--r--deps/uv/src/unix/tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/uv/src/unix/tcp.c b/deps/uv/src/unix/tcp.c
index a51576ba1b..26ab53dbb8 100644
--- a/deps/uv/src/unix/tcp.c
+++ b/deps/uv/src/unix/tcp.c
@@ -343,11 +343,11 @@ int uv_tcp_keepalive(uv_tcp_t* handle, int on, unsigned int delay) {
}
-int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int on) {
- if (on)
- handle->flags |= UV_TCP_SINGLE_ACCEPT;
- else
+int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int enable) {
+ if (enable)
handle->flags &= ~UV_TCP_SINGLE_ACCEPT;
+ else
+ handle->flags |= UV_TCP_SINGLE_ACCEPT;
return 0;
}