X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-08-read-after-hangup.c;fp=ccan%2Fio%2Ftest%2Frun-08-read-after-hangup.c;h=b73139e4f4c7a256c1e00301dce63c67622c1869;hb=3a7b8a8a8081ebbb6457527de376dec6264bc381;hp=56d9a164accddbbd40ba290016a2486a008fd45d;hpb=869dc1528e64604e9264c6f12e0f2cb79bf3d79e;p=ccan 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)