about summary refs log tree commit diff stats
path: root/test/src/test-uv-link-source-t.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-26 18:10:04 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-26 18:10:04 -0400
commit48828a62ee235d32c8e53131a55729dea41543ee (patch)
tree4ca3747bd60c1e82ad51055bac935fc38676b267 /test/src/test-uv-link-source-t.c
parentb0a811cf3b097753254170dc6fd08e34f8c2b70d (diff)
downloaduv_link_t-48828a62ee235d32c8e53131a55729dea41543ee.tar.gz
uv_link_t: pass source to write/shutdown
Diffstat (limited to 'test/src/test-uv-link-source-t.c')
-rw-r--r--test/src/test-uv-link-source-t.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/src/test-uv-link-source-t.c b/test/src/test-uv-link-source-t.c
index 404543a..3187aaf 100644
--- a/test/src/test-uv-link-source-t.c
+++ b/test/src/test-uv-link-source-t.c
@@ -38,7 +38,9 @@ static void test_writes() {
 
   /* .write() should work */
   buf = uv_buf_init("x", 1);
-  CHECK_EQ(uv_link_write(&source.link, &buf, 1, NULL, source_write_cb), 0,
+  CHECK_EQ(uv_link_write(&source.link, &source.link, &buf, 1, NULL,
+                         source_write_cb),
+           0,
            "source.link.write() should return 0");
 
   CHECK_EQ(uv_run(loop, UV_RUN_DEFAULT), 0, "uv_run()");