diff options
Diffstat (limited to 'test/test-tcp-bind6-error.c')
-rw-r--r-- | test/test-tcp-bind6-error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-tcp-bind6-error.c b/test/test-tcp-bind6-error.c index d2127858..cf283fa0 100644 --- a/test/test-tcp-bind6-error.c +++ b/test/test-tcp-bind6-error.c @@ -51,9 +51,9 @@ TEST_IMPL(tcp_bind6_error_addrinuse) { r = uv_tcp_bind6(&server2, addr); ASSERT(r == 0); - r = uv_tcp_listen(&server1, 128, NULL); + r = uv_listen((uv_stream_t*)&server1, 128, NULL); ASSERT(r == 0); - r = uv_tcp_listen(&server2, 128, NULL); + r = uv_listen((uv_stream_t*)&server2, 128, NULL); ASSERT(r == -1); ASSERT(uv_last_error().code == UV_EADDRINUSE); |