]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-01-start-finish.c
io: remove io_debug support.
[ccan] / ccan / io / test / run-01-start-finish.c
index b1ce78d3f293f0916b5265cb7a18411333a1ddba..5356244e87e188b19c5ad5cc76c8d4a1a66126a6 100644 (file)
@@ -6,9 +6,7 @@
 #include <sys/wait.h>
 #include <stdio.h>
 
-#ifndef PORT
 #define PORT "65001"
-#endif
 static int expected_fd;
 
 static void finish_ok(struct io_conn *conn, int *state)
@@ -64,7 +62,7 @@ static int make_listen_fd(const char *port, struct addrinfo **info)
 int main(void)
 {
        int state = 0;
-       struct addrinfo *addrinfo;
+       struct addrinfo *addrinfo = NULL;
        struct io_listener *l;
        int fd;
 
@@ -88,7 +86,7 @@ int main(void)
                exit(0);
        }
        freeaddrinfo(addrinfo);
-       ok1(io_loop() == &state + 1);
+       ok1(io_loop(NULL, NULL) == &state + 1);
        ok1(state == 2);
        io_close_listener(l);
        ok1(wait(&state));