io: io_always, and zero-length operations support.
[ccan] / ccan / io / test / run-18-errno.c
index 985a32297187a303cb5f92a0b9fe99635ffbde78..222c0fb58e3ee7ab05d9ae76bab97f8dfbabfae2 100644 (file)
@@ -36,7 +36,7 @@ static void init_conn(int fd, int *state)
                (*state)++;
                close(fd);
                errno = 0;
-               io_set_finish(io_new_conn(fd, io_read(state, 0,
+               io_set_finish(io_new_conn(fd, io_read(state, 1,
                                                      io_close_cb, NULL)),
                              finish_EBADF, state);
        }