X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-05-write.c;h=1181bec02fdaf612151691d5a05cd856acd2bb98;hb=bafb520171bacdc19bcf2f75bb224f36563d7851;hp=83c8c4cab0e3348618fd7a68468e05bb14201355;hpb=0a2fd289c7bf57d9fc35ad6af36df4bcc694f361;p=ccan diff --git a/ccan/io/test/run-05-write.c b/ccan/io/test/run-05-write.c index 83c8c4ca..1181bec0 100644 --- a/ccan/io/test/run-05-write.c +++ b/ccan/io/test/run-05-write.c @@ -12,18 +12,18 @@ struct data { char *buf; }; -static struct io_op *start_ok(struct io_conn *conn, struct data *d) +static struct io_plan *start_ok(struct io_conn *conn, struct data *d) { ok1(d->state == 0); d->state++; - return io_write(d->buf, d->bytes, io_next(conn, io_close, d)); + return io_write(conn, d->buf, d->bytes, io_close, d); } static void finish_ok(struct io_conn *conn, struct data *d) { ok1(d->state == 1); d->state++; - io_break(d, NULL); + io_break(conn, d, NULL, NULL); } static int make_listen_fd(const char *port, struct addrinfo **info)