]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-08-hangup-on-idle.c
ccan/io: implement timeouts.
[ccan] / ccan / io / test / run-08-hangup-on-idle.c
index c1ff1e6eec9745a730a2b5677adfa91824c5d306..eb3dab3d5fcf29188efb3d8e1351383de0b58110 100644 (file)
@@ -15,7 +15,7 @@ static struct io_plan *read_in(struct io_conn *conn, char *buf)
 
 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)
@@ -52,7 +52,7 @@ int main(void)
                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 */