Revert "io: closing one side of a duplex connection closes both."
[ccan] / ccan / io / test / run-02-read.c
index 65dbe4dca220874a57a73e0ebd7e0901fd472918..c7a7eaf1c338704ad42cbcd3c6f7796377521134 100644 (file)
@@ -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);
 }