]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-08-read-after-hangup.c
ccan/io: implement timeouts.
[ccan] / ccan / io / test / run-08-read-after-hangup.c
index f9ed267d80ce1effc7c555073371ef49cfff6966..14af5ae6373a5afaac958b5b8376fab0c443f7fa 100644 (file)
@@ -27,7 +27,7 @@ static struct io_plan *init_writer(struct io_conn *conn, struct io_conn *wakeme)
 
 static struct io_plan *init_waiter(struct io_conn *conn, void *unused)
 {
-       return io_wait(conn, inbuf, IO_IN, read_buf, NULL);
+       return io_wait(conn, inbuf, read_buf, NULL);
 }
 
 int main(void)
@@ -41,7 +41,7 @@ int main(void)
        conn = io_new_conn(NULL, fds[0], init_waiter, NULL);
        io_new_conn(conn, fds[1], init_writer, conn);
 
-       ok1(io_loop() == NULL);
+       ok1(io_loop(NULL, NULL) == NULL);
        ok1(memcmp(inbuf, "EASYTEST", sizeof(inbuf)) == 0);
 
        /* This exits depending on whether all tests passed */