X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-07-break.c;h=3dac4ecee2d9e6c0af85c07ce5eb3f1322cae67c;hp=327fa956da687571d92eaf824120cba7531bce51;hb=bfb80c566ab695b70a404a419f4b1450a2fcf27a;hpb=174fe59fdce127808420986f56987205ecab2858 diff --git a/ccan/io/test/run-07-break.c b/ccan/io/test/run-07-break.c index 327fa956..3dac4ece 100644 --- a/ccan/io/test/run-07-break.c +++ b/ccan/io/test/run-07-break.c @@ -11,7 +11,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 == 1); d->state++; @@ -22,7 +22,7 @@ static struct io_plan *start_break(struct io_conn *conn, struct data *d) { ok1(d->state == 0); d->state++; - return io_break(conn, d, do_read, d); + return io_break(conn, d, plan_read, d); } static void finish_ok(struct io_conn *conn, struct data *d)