X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-10-many.c;fp=ccan%2Fio%2Ftest%2Frun-10-many.c;h=63c539634f92ad98e592d6a17b7063ffb162ad13;hp=6a972ba82da10ef8900c6f3f8bc3ea17b49a7061;hb=7a8a585c32d1010426f587a6933f05de7a06dfd0;hpb=1fe2db9cbe84812e1465db36f538a222e9984c93 diff --git a/ccan/io/test/run-10-many.c b/ccan/io/test/run-10-many.c index 6a972ba8..63c53963 100644 --- a/ccan/io/test/run-10-many.c +++ b/ccan/io/test/run-10-many.c @@ -15,10 +15,10 @@ struct buffer { char buf[32]; }; -static struct io_op *poke_writer(struct io_conn *conn, struct buffer *buf); -static struct io_op *poke_reader(struct io_conn *conn, struct buffer *buf); +static struct io_plan *poke_writer(struct io_conn *conn, struct buffer *buf); +static struct io_plan *poke_reader(struct io_conn *conn, struct buffer *buf); -static struct io_op *do_read(struct io_conn *conn, struct buffer *buf) +static struct io_plan *do_read(struct io_conn *conn, struct buffer *buf) { assert(conn == buf->reader); @@ -26,7 +26,7 @@ static struct io_op *do_read(struct io_conn *conn, struct buffer *buf) io_next(conn, poke_writer, buf)); } -static struct io_op *do_write(struct io_conn *conn, struct buffer *buf) +static struct io_plan *do_write(struct io_conn *conn, struct buffer *buf) { assert(conn == buf->writer); @@ -34,7 +34,7 @@ static struct io_op *do_write(struct io_conn *conn, struct buffer *buf) io_next(conn, poke_reader, buf)); } -static struct io_op *poke_writer(struct io_conn *conn, struct buffer *buf) +static struct io_plan *poke_writer(struct io_conn *conn, struct buffer *buf) { assert(conn == buf->reader); @@ -48,7 +48,7 @@ static struct io_op *poke_writer(struct io_conn *conn, struct buffer *buf) return io_idle(conn); } -static struct io_op *poke_reader(struct io_conn *conn, struct buffer *buf) +static struct io_plan *poke_reader(struct io_conn *conn, struct buffer *buf) { assert(conn == buf->writer); /* You read. */ @@ -61,7 +61,7 @@ static struct io_op *poke_reader(struct io_conn *conn, struct buffer *buf) return io_idle(conn); } -static struct io_op *reader(struct io_conn *conn, struct buffer *buf) +static struct io_plan *reader(struct io_conn *conn, struct buffer *buf) { assert(conn == buf->reader);