diff options
Diffstat (limited to 'tests/SOCK_Connector_Test.cpp')
-rw-r--r-- | tests/SOCK_Connector_Test.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp index c59ff63e537..997621ec257 100644 --- a/tests/SOCK_Connector_Test.cpp +++ b/tests/SOCK_Connector_Test.cpp @@ -113,20 +113,18 @@ find_another_host (ACE_TCHAR other_host[]) // an infinite loop on Linux --mas 03-08-2001 while ((h = gethostent ()) != NULL) { - if (ACE_OS::strcmp (h->h_name, - ACE_TEXT_ALWAYS_CHAR (ACE_DEFAULT_SERVER_HOST)) == 0) + if (ACE_OS::strcmp (h->h_name, ACE_DEFAULT_SERVER_HOST) == 0) continue; // AIX just _has_ to be different if (ACE_OS::strcmp (h->h_name, "loopback") == 0) continue; // If not me. - if (ACE_OS::strcmp - (h->h_name, ACE_TEXT_ALWAYS_CHAR (other_host)) != 0 + if (ACE_OS::strcmp (h->h_name, other_host) != 0 && ACE_OS::strcmp (h->h_name, un.nodename) != 0) { ACE_OS::strcpy (candidate[candidate_count].host_name, - ACE_TEXT_CHAR_TO_TCHAR (h->h_name)); + h->h_name); if (++candidate_count >= MAX_CANDIDATES) break; } |