X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-15-timeout.c;fp=ccan%2Fio%2Ftest%2Frun-15-timeout.c;h=f8ea6f4c22891c602c339a60401b89830730b5b7;hb=34776d3e9ad7de78778306a2d09c2c95df06c902;hp=f8ddc6a57ed6e21ae492a497476a1cd65c2a6bfa;hpb=cf86c1e30648c9b482b92444c39ea6ea0ff936a8;p=ccan diff --git a/ccan/io/test/run-15-timeout.c b/ccan/io/test/run-15-timeout.c index f8ddc6a5..f8ea6f4c 100644 --- a/ccan/io/test/run-15-timeout.c +++ b/ccan/io/test/run-15-timeout.c @@ -7,6 +7,10 @@ #include #include +#ifndef PORT +#define PORT "65015" +#endif + struct data { int state; int timeout_usec; @@ -93,7 +97,7 @@ int main(void) d->state = 0; d->timed_out = false; d->timeout_usec = 100000; - fd = make_listen_fd("65002", &addrinfo); + fd = make_listen_fd(PORT, &addrinfo); ok1(fd >= 0); l = io_new_listener(fd, init_conn, d); ok1(l);