X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-08-hangup-on-idle.c;h=eb3dab3d5fcf29188efb3d8e1351383de0b58110;hb=94dd4c2bddd0dc080ad5b85465fa3f45f486967a;hp=c1ff1e6eec9745a730a2b5677adfa91824c5d306;hpb=cdffdf5d61f8330cfc3467e73a84876eb3928e9b;p=ccan diff --git a/ccan/io/test/run-08-hangup-on-idle.c b/ccan/io/test/run-08-hangup-on-idle.c index c1ff1e6e..eb3dab3d 100644 --- a/ccan/io/test/run-08-hangup-on-idle.c +++ b/ccan/io/test/run-08-hangup-on-idle.c @@ -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 */