From 48828a62ee235d32c8e53131a55729dea41543ee Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 26 May 2016 18:10:04 -0400 Subject: uv_link_t: pass source to write/shutdown --- test/src/test-uv-link-source-t.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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()"); -- cgit 1.4.1-2-gfad0