X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-12-bidir.c;h=812c863c85059be1c0fd8dfce286b063034b63f1;hp=6dc94c8a4a57a1baee29d281b7e04355a7cd7752;hb=34776d3e9ad7de78778306a2d09c2c95df06c902;hpb=cf86c1e30648c9b482b92444c39ea6ea0ff936a8 diff --git a/ccan/io/test/run-12-bidir.c b/ccan/io/test/run-12-bidir.c index 6dc94c8a..812c863c 100644 --- a/ccan/io/test/run-12-bidir.c +++ b/ccan/io/test/run-12-bidir.c @@ -6,6 +6,10 @@ #include #include +#ifndef PORT +#define PORT "65012" +#endif + struct data { struct io_listener *l; int state; @@ -82,7 +86,7 @@ int main(void) /* This is how many tests you plan to run */ plan_tests(10); d->state = 0; - fd = make_listen_fd("65012", &addrinfo); + fd = make_listen_fd(PORT, &addrinfo); ok1(fd >= 0); d->l = io_new_listener(fd, init_conn, d); ok1(d->l);