aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-21 02:35:20 +0000
committerYang Tse <yangsita@gmail.com>2008-09-21 02:35:20 +0000
commitb6f29bef06035e53d2561a3cb72db10479db4303 (patch)
tree742dc4ddf8f7054870db0951b1300bc17040ec01 /tests
parent6abbbaad1b0338b064b133ac0aa5ad9c75ad52ad (diff)
fix compiler warning: defined but not used
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c7
-rw-r--r--tests/server/tftpd.c7
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);