]> granicus.if.org Git - curl/commitdiff
fix compiler warning: defined but not used
authorYang Tse <yangsita@gmail.com>
Sun, 21 Sep 2008 02:35:20 +0000 (02:35 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 21 Sep 2008 02:35:20 +0000 (02:35 +0000)
tests/server/sws.c
tests/server/tftpd.c

index e60b8d79cfb98769685c54902afe4329e11a0383..3b4b63d2b36877882ff70b6d7185feacae4225ca 100644 (file)
@@ -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);
index 221129e338a66d6117e5e550e8c267800ee4b210..2ef23f2ad4fd80bc12fb676554746059c2f15d56 100644 (file)
@@ -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);