ccan/io: io_close_cb()
[ccan] / ccan / io / test / run-03-readpartial.c
index d5411848b85673ea0808a4b5aad7e5f8d8924c6e..7ecccc7412cd2aa3f2b5342614a695168e5e46d9 100644 (file)
@@ -30,7 +30,7 @@ static void init_conn(int fd, struct data *d)
        d->bytes = sizeof(d->buf);
 
        io_set_finish(io_new_conn(fd,
-                                 io_read_partial(d->buf, &d->bytes, io_close, d)),
+                                 io_read_partial(d->buf, &d->bytes, io_close_cb, d)),
                      finish_ok, d);
 }