X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=597060c2b596f80b5a3b5a43e3539f3371a7fa01;hp=acf372f56fe0a287898af6dfc269c497318222bc;hb=bfb80c566ab695b70a404a419f4b1450a2fcf27a;hpb=0998955055e45ef980a2dfdbd302142269abdd26 diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index acf372f5..597060c2 100644 --- a/ccan/io/test/run-06-idle.c +++ b/ccan/io/test/run-06-idle.c @@ -16,7 +16,7 @@ struct data { char buf[4]; }; -static struct io_plan *do_read(struct io_conn *conn, struct data *d) +static struct io_plan *plan_read(struct io_conn *conn, struct data *d) { ok1(d->state == 2 || d->state == 3); d->state++; @@ -28,7 +28,7 @@ static struct io_plan *start_waker(struct io_conn *conn, struct data *d) ok1(d->state == 1); d->state++; - io_wake(idler, do_read, d); + io_wake(idler, plan_read, d); return io_close(conn, NULL); }