]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-15-timeout.c
ccan/io: pass struct io_plan explicitly.
[ccan] / ccan / io / test / run-15-timeout.c
index 510a97203865af538352ef233d0486f8562d5c60..5e94b8c0168cc22cac6d36c9b4b4e7dc2a6524d1 100644 (file)
@@ -15,14 +15,14 @@ struct data {
 };
 
 
-static struct io_plan *no_timeout(struct io_conn *conn, struct data *d)
+static struct io_plan no_timeout(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 1);
        d->state++;
        return io_close(conn, d);
 }
 
-static struct io_plan *timeout(struct io_conn *conn, struct data *d)
+static struct io_plan timeout(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 1);
        d->state++;
@@ -30,7 +30,7 @@ static struct io_plan *timeout(struct io_conn *conn, struct data *d)
        return io_close(conn, d);
 }
 
-static struct io_plan *start_ok(struct io_conn *conn, struct data *d)
+static struct io_plan start_ok(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 0);
        d->state++;