]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-07-break.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / io / test / run-07-break.c
index 1f69e9f51bb17e3e2aae58075adf5d3a6c8d7d34..135dcbb8ffc3374a7b82cc1e3b00d442503662f3 100644 (file)
@@ -6,9 +6,7 @@
 #include <sys/wait.h>
 #include <stdio.h>
 
-#ifndef PORT
 #define PORT "65007"
-#endif
 
 struct data {
        int state;
@@ -107,11 +105,11 @@ int main(void)
                exit(0);
        }
        freeaddrinfo(addrinfo);
-       ok1(io_loop() == d);
+       ok1(io_loop(NULL, NULL) == d);
        ok1(d->state == 1);
        io_close_listener(l);
 
-       ok1(io_loop() == NULL);
+       ok1(io_loop(NULL, NULL) == NULL);
        ok1(d->state == 3);
        ok1(memcmp(d->buf, "hellothere", sizeof(d->buf)) == 0);
        free(d);