static struct io_plan *setup_waiter(struct io_conn *conn, char *buf)
{
- return io_wait(conn, buf, IO_IN, read_in, buf);
+ return io_wait(conn, buf, read_in, buf);
}
static struct io_plan *wake_and_close(struct io_conn *conn, char *buf)
exit(0);
}
- ok1(io_loop() == NULL);
+ ok1(io_loop(NULL, NULL) == NULL);
ok1(memcmp(buf, "hello there world", 16) == 0);
/* This exits depending on whether all tests passed */