X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;fp=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=acf372f56fe0a287898af6dfc269c497318222bc;hb=0998955055e45ef980a2dfdbd302142269abdd26;hp=efe052b47fa95642c1ae7c6b131ea0fdac8eb373;hpb=7a8a585c32d1010426f587a6933f05de7a06dfd0;p=ccan diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index efe052b4..acf372f5 100644 --- a/ccan/io/test/run-06-idle.c +++ b/ccan/io/test/run-06-idle.c @@ -20,7 +20,7 @@ static struct io_plan *do_read(struct io_conn *conn, struct data *d) { ok1(d->state == 2 || d->state == 3); d->state++; - return io_read(d->buf, sizeof(d->buf), io_next(conn, io_close, d)); + return io_read(conn, d->buf, sizeof(d->buf), io_close, d); } static struct io_plan *start_waker(struct io_conn *conn, struct data *d) @@ -58,7 +58,7 @@ static void finish_idle(struct io_conn *conn, struct data *d) { ok1(d->state == 4); d->state++; - io_break(d, NULL); + io_break(conn, d, NULL, NULL); } static int make_listen_fd(const char *port, struct addrinfo **info)