]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-07-break.c
ccan/io: pass struct io_plan explicitly.
[ccan] / ccan / io / test / run-07-break.c
index 3dac4ecee2d9e6c0af85c07ce5eb3f1322cae67c..5bc0e8c68be8ac4a89debb5f44e67ea3d0a47274 100644 (file)
@@ -11,14 +11,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 == 1);
        d->state++;
        return io_read(conn, d->buf, sizeof(d->buf), io_close, d);
 }
 
-static struct io_plan *start_break(struct io_conn *conn, struct data *d)
+static struct io_plan start_break(struct io_conn *conn, struct data *d)
 {
        ok1(d->state == 0);
        d->state++;