static struct io_plan *setup_waiter(struct io_conn *conn, int *status)
{
- return io_wait(conn, status, IO_IN, io_close_cb, NULL);
+ return io_wait(conn, status, io_close_cb, NULL);
}
int main(void)
ok1(pipe(fds) == 0);
io_new_conn(NULL, fds[0], setup_waiter, &status);
- io_loop();
+ io_loop(NULL, NULL);
exit(1);
}