diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-08-31 05:24:30 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-09-01 08:02:15 +0200 |
commit | 255671da747fde3f23abe28ec9c594c6a83813e8 (patch) | |
tree | a3169c2b9ce86ed0168da10cccbd16586cfa4ca7 /test/benchmark-tcp-write-batch.c | |
parent | daa229ace3f15e985ce0873e881163d748f6d969 (diff) | |
download | libuv-255671da747fde3f23abe28ec9c594c6a83813e8.tar.gz libuv-255671da747fde3f23abe28ec9c594c6a83813e8.zip |
include: uv_tcp_connect{6} now takes sockaddr_in*
Passing or returning structs as values makes life hard for people that
work with libuv through a foreign function interface. Switch to a
pointer-based approach.
Fixes #684.
Diffstat (limited to 'test/benchmark-tcp-write-batch.c')
-rw-r--r-- | test/benchmark-tcp-write-batch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmark-tcp-write-batch.c b/test/benchmark-tcp-write-batch.c index 59fd3af1..09b93c24 100644 --- a/test/benchmark-tcp-write-batch.c +++ b/test/benchmark-tcp-write-batch.c @@ -117,7 +117,7 @@ BENCHMARK_IMPL(tcp_write_batch) { r = uv_tcp_init(loop, &tcp_client); ASSERT(r == 0); - r = uv_tcp_connect(&connect_req, &tcp_client, addr, connect_cb); + r = uv_tcp_connect(&connect_req, &tcp_client, &addr, connect_cb); ASSERT(r == 0); start = uv_hrtime(); |