X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Fbenchmarks%2Frun-loop.c;h=ef01cf6a94663597dec0b4f7d0fe63bbe9c02f7a;hb=5a510ed5696255910fd42adb47d7c1ffa728a116;hp=b0d383e89b7c2310f0c5a6acf42babfc808d9f3e;hpb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45;p=ccan diff --git a/ccan/io/benchmarks/run-loop.c b/ccan/io/benchmarks/run-loop.c index b0d383e8..ef01cf6a 100644 --- a/ccan/io/benchmarks/run-loop.c +++ b/ccan/io/benchmarks/run-loop.c @@ -23,7 +23,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, @@ -41,7 +41,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();