X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Fbenchmarks%2Frun-loop.c;fp=ccan%2Fio%2Fbenchmarks%2Frun-loop.c;h=b0d383e89b7c2310f0c5a6acf42babfc808d9f3e;hb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45;hp=b0e6b02c804fec579ed2d6019b3d266f993aeb7e;hpb=e2ce04eac30ec613c858bd4cd2ca12e1c464edb8;p=ccan diff --git a/ccan/io/benchmarks/run-loop.c b/ccan/io/benchmarks/run-loop.c index b0e6b02c..b0d383e8 100644 --- a/ccan/io/benchmarks/run-loop.c +++ b/ccan/io/benchmarks/run-loop.c @@ -66,14 +66,13 @@ int main(void) memset(buf[i].buf, i, sizeof(buf[i].buf)); sprintf(buf[i].buf, "%i-%i", i, i); - buf[i].reader = io_new_conn(last_read, io_idle(), NULL, NULL); + buf[i].reader = io_new_conn(last_read, io_idle()); if (!buf[i].reader) err(1, "Creating reader %i", i); buf[i].writer = io_new_conn(fds[1], io_write(&buf[i].buf, sizeof(buf[i].buf), - poke_reader, &buf[i]), - NULL, NULL); + poke_reader, &buf[i])); if (!buf[i].writer) err(1, "Creating writer %i", i); last_read = fds[0]; @@ -83,13 +82,12 @@ int main(void) i = 0; buf[i].iters = 0; sprintf(buf[i].buf, "%i-%i", i, i); - buf[i].reader = io_new_conn(last_read, io_idle(), NULL, NULL); + buf[i].reader = io_new_conn(last_read, io_idle()); if (!buf[i].reader) err(1, "Creating reader %i", i); buf[i].writer = io_new_conn(last_write, io_write(&buf[i].buf, sizeof(buf[i].buf), - poke_reader, &buf[i]), - NULL, NULL); + poke_reader, &buf[i])); if (!buf[i].writer) err(1, "Creating writer %i", i);