diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-21 02:35:20 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-21 02:35:20 +0000 |
commit | b6f29bef06035e53d2561a3cb72db10479db4303 (patch) | |
tree | 742dc4ddf8f7054870db0951b1300bc17040ec01 /tests | |
parent | 6abbbaad1b0338b064b133ac0aa5ad9c75ad52ad (diff) |
fix compiler warning: defined but not used
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sws.c | 7 | ||||
-rw-r--r-- | tests/server/tftpd.c | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index e60b8d79c..3b4b63d2b 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -987,12 +987,7 @@ int main(int argc, char *argv[]) } logmsg("Running IPv%d version on port %hu", -#ifdef ENABLE_IPV6 - (use_ipv6?6:4) -#else - 4 -#endif - , port ); + (use_ipv6?6:4), port); /* start accepting connections */ rc = listen(sock, 5); diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 221129e33..2ef23f2ad 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -516,12 +516,7 @@ int main(int argc, char **argv) } logmsg("Running IPv%d version on port UDP/%hu", -#ifdef ENABLE_IPV6 - (use_ipv6?6:4) -#else - 4 -#endif - , port ); + (use_ipv6?6:4), port); do { fromlen = sizeof(from); |