X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-08-read-after-hangup.c;h=b73139e4f4c7a256c1e00301dce63c67622c1869;hp=56d9a164accddbbd40ba290016a2486a008fd45d;hb=13b38a7282c6043d6abe310e5a16d6610ed7a1c1;hpb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45 diff --git a/ccan/io/test/run-08-read-after-hangup.c b/ccan/io/test/run-08-read-after-hangup.c index 56d9a164..b73139e4 100644 --- a/ccan/io/test/run-08-read-after-hangup.c +++ b/ccan/io/test/run-08-read-after-hangup.c @@ -11,8 +11,8 @@ static char inbuf[8]; static struct io_plan wake_it(struct io_conn *conn, struct io_conn *reader) { - io_wake(reader, io_read(inbuf, 8, io_close, NULL)); - return io_close(conn, NULL); + io_wake(reader, io_read(inbuf, 8, io_close_cb, NULL)); + return io_close(); } int main(void)