]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-12-bidir.c
ccan/io: remove conn arg from io_plan constructors.
[ccan] / ccan / io / test / run-12-bidir.c
index 0cafb4f2454ac0f17bf489dc974129db82a96bca..5b39f38dbc1be78fc7ff26a35fe946203b67f712 100644 (file)
@@ -21,7 +21,7 @@ static void finish_ok(struct io_conn *conn, struct data *d)
 static struct io_plan write_out(struct io_conn *conn, struct data *d)
 {
        d->state++;
-       return io_write(conn, d->wbuf, sizeof(d->wbuf), io_close, d);
+       return io_write(d->wbuf, sizeof(d->wbuf), io_close, d);
 }
 
 static struct io_plan start_ok(struct io_conn *conn, struct data *d)
@@ -33,7 +33,7 @@ static struct io_plan start_ok(struct io_conn *conn, struct data *d)
 
        memset(d->wbuf, 7, sizeof(d->wbuf));
        ok1(io_duplex(conn, write_out, finish_ok, d));
-       return io_read(conn, d->buf, sizeof(d->buf), io_close, d);
+       return io_read(d->buf, sizeof(d->buf), io_close, d);
 }
 
 static int make_listen_fd(const char *port, struct addrinfo **info)