X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-10-many.c;h=da59a3cc30ef0f6ebb734a24d755515f636b4971;hp=b13e1b4345a34997450b5d3ec62b064286fa0240;hb=641b511049e5c03d45ada0c3fd829691b173e5d1;hpb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45 diff --git a/ccan/io/test/run-10-many.c b/ccan/io/test/run-10-many.c index b13e1b43..da59a3cc 100644 --- a/ccan/io/test/run-10-many.c +++ b/ccan/io/test/run-10-many.c @@ -22,7 +22,7 @@ static struct io_plan poke_writer(struct io_conn *conn, struct buffer *buf) assert(conn == buf->reader); if (buf->iters == NUM_ITERS) - return io_close(conn, NULL); + return io_close(); /* You write. */ io_wake(buf->writer, @@ -40,7 +40,7 @@ static struct io_plan poke_reader(struct io_conn *conn, struct buffer *buf) io_read(&buf->buf, sizeof(buf->buf), poke_writer, buf)); if (++buf->iters == NUM_ITERS) - return io_close(conn, NULL); + return io_close(); /* I'll wait until you tell me to write. */ return io_idle();