]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-13-all-idle.c
Merge branch 'master' of ozlabs.org:ccan
[ccan] / ccan / io / test / run-13-all-idle.c
index 48be71dda7340a0671436aa101bd80edf6fddf4f..0e7e1565d579fa56b76397dcf05107c12611f63e 100644 (file)
@@ -7,11 +7,6 @@
 #include <stdio.h>
 #include <signal.h>
 
-static struct io_plan *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);
        }