From b6f29bef06035e53d2561a3cb72db10479db4303 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 21 Sep 2008 02:35:20 +0000 Subject: fix compiler warning: defined but not used --- tests/server/sws.c | 7 +------ tests/server/tftpd.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3