X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-04-writepartial.c;h=681d9d4de9cb1676b55588a6ea0954b3f42dd932;hp=12a21ddcd712e08fc793150380f8a8e0fefc17a4;hb=34776d3e9ad7de78778306a2d09c2c95df06c902;hpb=57d9d1be33905691ec756b14b066181ca6850ced diff --git a/ccan/io/test/run-04-writepartial.c b/ccan/io/test/run-04-writepartial.c index 12a21ddc..681d9d4d 100644 --- a/ccan/io/test/run-04-writepartial.c +++ b/ccan/io/test/run-04-writepartial.c @@ -6,6 +6,10 @@ #include #include +#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);