summaryrefslogtreecommitdiff
path: root/deps/uv/test/benchmark-udp-pummel.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-09-04 14:46:35 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-09-04 18:11:32 +0200
commit7494c84fe6fa1127de5a9827119d9e389cbfb016 (patch)
tree6f9ca90a24ea233aa3426579a455a425fbad470d /deps/uv/test/benchmark-udp-pummel.c
parent358c2901567c005689dceef1361754cca95ca14e (diff)
downloadnode-new-7494c84fe6fa1127de5a9827119d9e389cbfb016.tar.gz
uv: upgrade to v0.11.13
This commit changes src/tcp_wrap.cc and src/udp_wrap.cc just enough to get by (i.e. to compile and function correctly.) The new libuv API allows for more cleanup and deduplication but I'm saving that for another day.
Diffstat (limited to 'deps/uv/test/benchmark-udp-pummel.c')
-rw-r--r--deps/uv/test/benchmark-udp-pummel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/uv/test/benchmark-udp-pummel.c b/deps/uv/test/benchmark-udp-pummel.c
index 3dec2631a2..f8f702c068 100644
--- a/deps/uv/test/benchmark-udp-pummel.c
+++ b/deps/uv/test/benchmark-udp-pummel.c
@@ -100,7 +100,7 @@ send:
&s->udp_handle,
bufs,
ARRAY_SIZE(bufs),
- &s->addr,
+ (const struct sockaddr*) &s->addr,
send_cb));
send_cb_called++;
}
@@ -174,7 +174,7 @@ static int pummel(unsigned int n_senders,
struct sockaddr_in addr;
ASSERT(0 == uv_ip4_addr("0.0.0.0", BASE_PORT + i, &addr));
ASSERT(0 == uv_udp_init(loop, &s->udp_handle));
- ASSERT(0 == uv_udp_bind(&s->udp_handle, &addr, 0));
+ ASSERT(0 == uv_udp_bind(&s->udp_handle, (const struct sockaddr*) &addr, 0));
ASSERT(0 == uv_udp_recv_start(&s->udp_handle, alloc_cb, recv_cb));
uv_unref((uv_handle_t*)&s->udp_handle);
}
@@ -195,7 +195,7 @@ static int pummel(unsigned int n_senders,
&s->udp_handle,
bufs,
ARRAY_SIZE(bufs),
- &s->addr,
+ (const struct sockaddr*) &s->addr,
send_cb));
}