diff options
author | Igor Zinkovsky <igorzi@microsoft.com> | 2011-07-22 15:32:27 -0700 |
---|---|---|
committer | Igor Zinkovsky <igorzi@microsoft.com> | 2011-07-22 16:57:09 -0700 |
commit | e7497227bd0d51b881b476c569f5c8422ebaecca (patch) | |
tree | c54343ef20fd1b3febfcba34a3d394088cb7de0e /test/test-tcp-bind-error.c | |
parent | 84ebddad8820a7256d80c82d771858ddf4f07b0b (diff) | |
download | libuv-e7497227bd0d51b881b476c569f5c8422ebaecca.tar.gz libuv-e7497227bd0d51b881b476c569f5c8422ebaecca.zip |
merge uv_tcp_listen and uv_pipe_listen into uv_listen
Diffstat (limited to 'test/test-tcp-bind-error.c')
-rw-r--r-- | test/test-tcp-bind-error.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-tcp-bind-error.c b/test/test-tcp-bind-error.c index 9034438d..b466ef8b 100644 --- a/test/test-tcp-bind-error.c +++ b/test/test-tcp-bind-error.c @@ -51,9 +51,9 @@ TEST_IMPL(tcp_bind_error_addrinuse) { r = uv_tcp_bind(&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); @@ -197,7 +197,7 @@ TEST_IMPL(tcp_listen_without_bind) { uv_init(); r = uv_tcp_init(&server); ASSERT(r == 0); - r = uv_tcp_listen(&server, 128, NULL); + r = uv_listen((uv_stream_t*)&server, 128, NULL); ASSERT(r == 0); return 0; |