X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-05-write.c;h=5319def8f2cc28c6921b2b611a2c99b013b1402d;hp=bcbc9cad119e3b82ccc0eb3e12f1838fc734792a;hb=3a7b8a8a8081ebbb6457527de376dec6264bc381;hpb=869dc1528e64604e9264c6f12e0f2cb79bf3d79e diff --git a/ccan/io/test/run-05-write.c b/ccan/io/test/run-05-write.c index bcbc9cad..5319def8 100644 --- a/ccan/io/test/run-05-write.c +++ b/ccan/io/test/run-05-write.c @@ -27,7 +27,8 @@ static void init_conn(int fd, struct data *d) { ok1(d->state == 0); d->state++; - io_set_finish(io_new_conn(fd, io_write(d->buf, d->bytes, io_close, d)), + io_set_finish(io_new_conn(fd, io_write(d->buf, d->bytes, + io_close_cb, d)), finish_ok, d); }