X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-05-write.c;h=1181bec02fdaf612151691d5a05cd856acd2bb98;hp=0e1c4a5e4bf64d1c1bc6afc6388ca757a95e5e1e;hb=bfb80c566ab695b70a404a419f4b1450a2fcf27a;hpb=7a8a585c32d1010426f587a6933f05de7a06dfd0 diff --git a/ccan/io/test/run-05-write.c b/ccan/io/test/run-05-write.c index 0e1c4a5e..1181bec0 100644 --- a/ccan/io/test/run-05-write.c +++ b/ccan/io/test/run-05-write.c @@ -16,14 +16,14 @@ 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)