]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-07-break.c
ccan/io: get rid of io_next(), pass callbacks directly.
[ccan] / ccan / io / test / run-07-break.c
index 7e9824d5a8ef0185611043dffcd07b52da7484c6..327fa956da687571d92eaf824120cba7531bce51 100644 (file)
@@ -15,14 +15,14 @@ static struct io_plan *do_read(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 1);
        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_break(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 0);
        d->state++;
-       return io_break(d, io_next(conn, do_read, d));
+       return io_break(conn, d, do_read, d);
 }
 
 static void finish_ok(struct io_conn *conn, struct data *d)