X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=ccan%2Fio%2Ftest%2Frun-12-bidir.c;h=eb4f4f0551f71804396131ae23f148a87699770d;hb=0998955055e45ef980a2dfdbd302142269abdd26;hp=3e769beb19920f0b3ae61cfdf1880d56f9a2bba1;hpb=7a8a585c32d1010426f587a6933f05de7a06dfd0;p=ccan diff --git a/ccan/io/test/run-12-bidir.c b/ccan/io/test/run-12-bidir.c index 3e769beb..eb4f4f05 100644 --- a/ccan/io/test/run-12-bidir.c +++ b/ccan/io/test/run-12-bidir.c @@ -21,7 +21,7 @@ static void finish_ok(struct io_conn *conn, struct data *d) static struct io_plan *write_out(struct io_conn *conn, struct data *d) { d->state++; - return io_write(d->wbuf, sizeof(d->wbuf), io_next(conn, io_close, d)); + return io_write(conn, d->wbuf, sizeof(d->wbuf), io_close, d); } static struct io_plan *start_ok(struct io_conn *conn, struct data *d) @@ -33,7 +33,7 @@ static struct io_plan *start_ok(struct io_conn *conn, struct data *d) memset(d->wbuf, 7, sizeof(d->wbuf)); ok1(io_duplex(conn, write_out, finish_ok, d)); - 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 int make_listen_fd(const char *port, struct addrinfo **info)