char buf[4];
};
-static struct io_plan *start_ok(struct io_conn *conn, struct data *d)
+static struct io_plan start_ok(struct io_conn *conn, struct data *d)
{
ok1(d->state == 0);
d->state++;
- return io_read(d->buf, sizeof(d->buf), io_next(conn, io_close, d));
+ return io_read(d->buf, sizeof(d->buf), io_close, d);
}
static void finish_ok(struct io_conn *conn, struct data *d)
{
ok1(d->state == 1);
d->state++;
- io_break(d, NULL);
+ io_break(d, NULL, NULL);
}
static int make_listen_fd(const char *port, struct addrinfo **info)