X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-13-all-idle.c;fp=ccan%2Fio%2Ftest%2Frun-13-all-idle.c;h=7ad6bfe4d0ae14d230f2cefbc970641f8423dfc8;hb=57d9d1be33905691ec756b14b066181ca6850ced;hp=f83fb31e46a245eeabc854ea7afe9d9deb44d0eb;hpb=737705f0c2ec60ea5b51ca55299488d86db37b5d;p=ccan diff --git a/ccan/io/test/run-13-all-idle.c b/ccan/io/test/run-13-all-idle.c index f83fb31e..7ad6bfe4 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_plan start(struct io_conn *conn, void *unused) -{ - return io_idle(); -} - 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(), NULL, NULL); io_loop(); exit(1); }