diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/SOCK_Send_Recv_Test_IPV6.cpp | 11 | ||||
-rw-r--r-- | tests/SOCK_Test_IPv6.cpp | 7 |
3 files changed, 12 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog index d372e0c3732..5e85abc0986 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sun Jan 18 09:40:04 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu> + + * tests/SOCK_Send_Recv_Test_IPV6.cpp: + * tests/SOCK_Test_IPv6.cpp: + + More warnings from unused functions. + Sun Jan 18 09:55:32 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl> * bin/msvc_auto_compile.pl: diff --git a/tests/SOCK_Send_Recv_Test_IPV6.cpp b/tests/SOCK_Send_Recv_Test_IPV6.cpp index b23752eed01..a38aea1c9a1 100644 --- a/tests/SOCK_Send_Recv_Test_IPV6.cpp +++ b/tests/SOCK_Send_Recv_Test_IPV6.cpp @@ -43,20 +43,15 @@ const size_t Test3_Loops = 10; const size_t Test3_Total_Size = Test3_Send_Size * Test3_Loops; +#if defined (ACE_HAS_IPV6) + static void * client (void *arg) { ACE_INET_Addr *remote_addr = ACE_reinterpret_cast (ACE_INET_Addr *, arg); -#if defined (ACE_HAS_IPV6) ACE_INET_Addr server_addr (remote_addr->get_port_number (), ACE_IPV6_LOCALHOST); -#else - - ACE_INET_Addr server_addr (remote_addr->get_port_number (), - ACE_LOCALHOST); -#endif /*ACE_HAS_IPV6*/ - ACE_SOCK_Stream cli_stream; ACE_SOCK_Connector con; @@ -312,6 +307,8 @@ server (void *arg) return 0; } +#endif /*ACE_HAS_IPV6*/ + #endif /* !ACE_LACKS_FORK || ACE_HAS_THREADS */ #if defined (ACE_HAS_IPV6) diff --git a/tests/SOCK_Test_IPv6.cpp b/tests/SOCK_Test_IPv6.cpp index eb5ac373337..bd92bf84173 100644 --- a/tests/SOCK_Test_IPv6.cpp +++ b/tests/SOCK_Test_IPv6.cpp @@ -27,17 +27,13 @@ static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz"; +#if defined (ACE_HAS_IPV6) static void * client (void *arg) { ACE_INET_Addr *remote_addr = (ACE_INET_Addr *) arg; -#if defined (ACE_HAS_IPV6) ACE_INET_Addr server_addr (remote_addr->get_port_number (), ACE_IPV6_LOCALHOST); -#else - ACE_INET_Addr server_addr (remote_addr->get_port_number (), - ACE_LOCALHOST); -#endif /*ACE_HAS_IPV6*/ ACE_SOCK_Stream cli_stream; ACE_SOCK_Connector con; @@ -206,7 +202,6 @@ server (void *arg) return 0; } -#if defined (ACE_HAS_IPV6) static void spawn (void) { |