X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-13-all-idle.c;h=0e7e1565d579fa56b76397dcf05107c12611f63e;hp=b6a52a55790da4aec03d35e53eede81b6990e2cf;hb=b85c47bb81a9078afc5ddc51448560187348bbbf;hpb=02388bfc242abbd33c7ba64b2c32d425f5359b67 diff --git a/ccan/io/test/run-13-all-idle.c b/ccan/io/test/run-13-all-idle.c index b6a52a55..0e7e1565 100644 --- a/ccan/io/test/run-13-all-idle.c +++ b/ccan/io/test/run-13-all-idle.c @@ -7,11 +7,6 @@ #include #include -static struct io_op *start(struct io_conn *conn, void *unused) -{ - return io_idle(conn); -} - int main(void) { int status; @@ -22,7 +17,7 @@ int main(void) int fds[2]; ok1(pipe(fds) == 0); - io_new_conn(fds[0], start, NULL, NULL); + io_new_conn(fds[0], io_idle()); io_loop(); exit(1); }