X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Fio%2Ftest%2Frun-02-read.c;h=c7a7eaf1c338704ad42cbcd3c6f7796377521134;hb=5a7e32bdb9b9c2273ef4cce8b35e23f177c504df;hp=65dbe4dca220874a57a73e0ebd7e0901fd472918;hpb=0f16a4197c94bfa84dad56d0cb9a9c20438d0a45;p=ccan diff --git a/ccan/io/test/run-02-read.c b/ccan/io/test/run-02-read.c index 65dbe4dc..c7a7eaf1 100644 --- a/ccan/io/test/run-02-read.c +++ b/ccan/io/test/run-02-read.c @@ -28,7 +28,7 @@ static void init_conn(int fd, struct data *d) d->state++; io_set_finish(io_new_conn(fd, - io_read(d->buf, sizeof(d->buf), io_close, d)), + io_read(d->buf, sizeof(d->buf), io_close_cb, d)), finish_ok, d); }