X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-08-read-after-hangup.c;h=56d9a164accddbbd40ba290016a2486a008fd45d;hp=95eb651cd7e7f78ee894b8ce35ff664a0320301a;hb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45;hpb=e2ce04eac30ec613c858bd4cd2ca12e1c464edb8 diff --git a/ccan/io/test/run-08-read-after-hangup.c b/ccan/io/test/run-08-read-after-hangup.c index 95eb651c..56d9a164 100644 --- a/ccan/io/test/run-08-read-after-hangup.c +++ b/ccan/io/test/run-08-read-after-hangup.c @@ -23,9 +23,8 @@ int main(void) plan_tests(3); ok1(pipe(fds) == 0); - conn = io_new_conn(fds[0], io_idle(), NULL, NULL); - io_new_conn(fds[1], io_write("EASYTEST", 8, wake_it, conn), - NULL, NULL); + conn = io_new_conn(fds[0], io_idle()); + io_new_conn(fds[1], io_write("EASYTEST", 8, wake_it, conn)); ok1(io_loop() == NULL); ok1(memcmp(inbuf, "EASYTEST", sizeof(inbuf)) == 0);