X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-13-all-idle.c;h=3701472b18258b74a0a0d02626c61efdd395e374;hb=6109a0a6140acbbfe5e998f7d7ea1215f035cb90;hp=0e7e1565d579fa56b76397dcf05107c12611f63e;hpb=641b511049e5c03d45ada0c3fd829691b173e5d1;p=ccan diff --git a/ccan/io/test/run-13-all-idle.c b/ccan/io/test/run-13-all-idle.c index 0e7e1565..3701472b 100644 --- a/ccan/io/test/run-13-all-idle.c +++ b/ccan/io/test/run-13-all-idle.c @@ -7,6 +7,11 @@ #include #include +static struct io_plan *setup_waiter(struct io_conn *conn, int *status) +{ + return io_wait(conn, status, io_close_cb, NULL); +} + int main(void) { int status; @@ -17,7 +22,7 @@ int main(void) int fds[2]; ok1(pipe(fds) == 0); - io_new_conn(fds[0], io_idle()); + io_new_conn(NULL, fds[0], setup_waiter, &status); io_loop(); exit(1); }