X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=efe052b47fa95642c1ae7c6b131ea0fdac8eb373;hp=e6144dee8c354dab55be9500cdb3318cb56cb5d1;hb=7a8a585c32d1010426f587a6933f05de7a06dfd0;hpb=1fe2db9cbe84812e1465db36f538a222e9984c93 diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index e6144dee..efe052b4 100644 --- a/ccan/io/test/run-06-idle.c +++ b/ccan/io/test/run-06-idle.c @@ -16,14 +16,14 @@ struct data { char buf[4]; }; -static struct io_op *do_read(struct io_conn *conn, struct data *d) +static struct io_plan *do_read(struct io_conn *conn, struct data *d) { ok1(d->state == 2 || d->state == 3); d->state++; return io_read(d->buf, sizeof(d->buf), io_next(conn, io_close, d)); } -static struct io_op *start_waker(struct io_conn *conn, struct data *d) +static struct io_plan *start_waker(struct io_conn *conn, struct data *d) { ok1(d->state == 1); d->state++; @@ -38,7 +38,7 @@ static void finish_waker(struct io_conn *conn, struct data *d) d->state++; } -static struct io_op *start_idle(struct io_conn *conn, struct data *d) +static struct io_plan *start_idle(struct io_conn *conn, struct data *d) { int fd;