X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;fp=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=19d0f8b1a682ddf33f0d9331cb8be8a41d77cfcd;hb=625bae8f5720d3ad3253ea9b26ad68abcd81bde5;hp=597060c2b596f80b5a3b5a43e3539f3371a7fa01;hpb=42762758d98feb08b861361b7f695de2cad26b07;p=ccan diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index 597060c2..19d0f8b1 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_plan *plan_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++; return io_read(conn, d->buf, sizeof(d->buf), io_close, d); } -static struct io_plan *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_plan *start_idle(struct io_conn *conn, struct data *d) +static struct io_plan start_idle(struct io_conn *conn, struct data *d) { int fd;