]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-04-writepartial.c
ccan/io: go linear for debugging.
[ccan] / ccan / io / test / run-04-writepartial.c
index 12a21ddcd712e08fc793150380f8a8e0fefc17a4..681d9d4de9cb1676b55588a6ea0954b3f42dd932 100644 (file)
@@ -6,6 +6,10 @@
 #include <sys/wait.h>
 #include <stdio.h>
 
+#ifndef PORT
+#define PORT "65004"
+#endif
+
 struct data {
        int state;
        size_t bytes;
@@ -91,7 +95,7 @@ int main(void)
        d->bytes = 1024*1024;
        d->buf = malloc(d->bytes);
        memset(d->buf, 'a', d->bytes);
-       fd = make_listen_fd("65004", &addrinfo);
+       fd = make_listen_fd(PORT, &addrinfo);
        ok1(fd >= 0);
        l = io_new_listener(fd, init_conn, d);
        ok1(l);