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