]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-01-start-finish.c
ccan/io: pass struct io_plan explicitly.
[ccan] / ccan / io / test / run-01-start-finish.c
index 837a12698faf13f76e4904a6fa0a94c42648b6d3..7c6ae4155f3b052202d6dfb55f02c0b77f28479d 100644 (file)
@@ -6,7 +6,7 @@
 #include <sys/wait.h>
 #include <stdio.h>
 
-static struct io_plan *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)