aboutsummaryrefslogtreecommitdiff
path: root/deps/uv/test/test-ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/test/test-ref.c')
-rw-r--r--deps/uv/test/test-ref.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/deps/uv/test/test-ref.c b/deps/uv/test/test-ref.c
index 7bb4277add..ca44ec415b 100644
--- a/deps/uv/test/test-ref.c
+++ b/deps/uv/test/test-ref.c
@@ -258,7 +258,10 @@ TEST_IMPL(tcp_ref3) {
uv_tcp_t h;
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
uv_tcp_init(uv_default_loop(), &h);
- uv_tcp_connect(&connect_req, &h, &addr, connect_and_shutdown);
+ uv_tcp_connect(&connect_req,
+ &h,
+ (const struct sockaddr*) &addr,
+ connect_and_shutdown);
uv_unref((uv_handle_t*)&h);
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
ASSERT(connect_cb_called == 1);
@@ -274,7 +277,10 @@ TEST_IMPL(tcp_ref4) {
uv_tcp_t h;
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
uv_tcp_init(uv_default_loop(), &h);
- uv_tcp_connect(&connect_req, &h, &addr, connect_and_write);
+ uv_tcp_connect(&connect_req,
+ &h,
+ (const struct sockaddr*) &addr,
+ connect_and_write);
uv_unref((uv_handle_t*)&h);
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
ASSERT(connect_cb_called == 1);
@@ -302,7 +308,7 @@ TEST_IMPL(udp_ref2) {
uv_udp_t h;
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
uv_udp_init(uv_default_loop(), &h);
- uv_udp_bind(&h, &addr, 0);
+ uv_udp_bind(&h, (const struct sockaddr*) &addr, 0);
uv_udp_recv_start(&h, (uv_alloc_cb)fail_cb, (uv_udp_recv_cb)fail_cb);
uv_unref((uv_handle_t*)&h);
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
@@ -320,7 +326,12 @@ TEST_IMPL(udp_ref3) {
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
uv_udp_init(uv_default_loop(), &h);
- uv_udp_send(&req, &h, &buf, 1, &addr, (uv_udp_send_cb)req_cb);
+ uv_udp_send(&req,
+ &h,
+ &buf,
+ 1,
+ (const struct sockaddr*) &addr,
+ (uv_udp_send_cb) req_cb);
uv_unref((uv_handle_t*)&h);
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
ASSERT(req_cb_called == 1);