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=13b38a7282c6043d6abe310e5a16d6610ed7a1c1;hpb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45 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); }