]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-06-idle.c
pipecmd: reverse order of args to match documentation; add pipecmd_preserve.
[ccan] / ccan / io / test / run-06-idle.c
index d01cb31fff4da1393e6d4071bc5b059ad7ff0326..3d7c3cc33201389e0469e29db815335d342c43d6 100644 (file)
@@ -9,9 +9,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 
-#ifndef PORT
 #define PORT "65006"
-#endif
 
 static struct io_conn *idler;
 
@@ -143,7 +141,7 @@ int main(void)
        }
        freeaddrinfo(addrinfo);
 
-       ok1(io_loop() == d);
+       ok1(io_loop(NULL, NULL) == d);
        ok1(d->state == 4);
        ok1(memcmp(d->buf, "hellothere", sizeof(d->buf)) == 0);
        free(d);