]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-01-start-finish.c
ccan/io: use explicit IO callback functions, instead of io_state values.
[ccan] / ccan / io / test / run-01-start-finish.c
index 03a1e3280bbb1d81908c2767854b4a017ef058e3..a2393d9fa2005cb58e244cc99ebf40974fbc16ce 100644 (file)
@@ -6,7 +6,7 @@
 #include <sys/wait.h>
 #include <stdio.h>
 
-static struct io_op *start_ok(struct io_conn *conn, int *state)
+static struct io_plan *start_ok(struct io_conn *conn, int *state)
 {
        ok1(*state == 0);
        (*state)++;
@@ -17,7 +17,7 @@ static void finish_ok(struct io_conn *conn, int *state)
 {
        ok1(*state == 1);
        (*state)++;
-       io_break(state + 1, NULL);
+       io_break(conn, state + 1, NULL, NULL);
 }
 
 static int make_listen_fd(const char *port, struct addrinfo **info)