]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-06-idle.c
ccan/io: get rid of io_next(), pass callbacks directly.
[ccan] / ccan / io / test / run-06-idle.c
index efe052b47fa95642c1ae7c6b131ea0fdac8eb373..acf372f56fe0a287898af6dfc269c497318222bc 100644 (file)
@@ -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)