aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-bind-error.c
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2011-07-22 15:32:27 -0700
committerIgor Zinkovsky <igorzi@microsoft.com>2011-07-22 16:57:09 -0700
commite7497227bd0d51b881b476c569f5c8422ebaecca (patch)
treec54343ef20fd1b3febfcba34a3d394088cb7de0e /test/test-tcp-bind-error.c
parent84ebddad8820a7256d80c82d771858ddf4f07b0b (diff)
downloadlibuv-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.c6
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;