summaryrefslogtreecommitdiff
path: root/ACE/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2011-03-21 12:54:52 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2011-03-21 12:54:52 +0000
commit548c48ae5fc9621dde486d0dfcdfcd3624697bd6 (patch)
tree20f0a3adb468ab646d6572c08c100e3fecdab9ce /ACE/ace/INET_Addr.cpp
parentf760dce745948f65d00a557cd1cbc03a9d35200f (diff)
downloadATCD-548c48ae5fc9621dde486d0dfcdfcd3624697bd6.tar.gz
Mon Mar 21 12:48:01 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/INET_Addr.cpp: * ace/OS_NS_netdb.h: * ace/OS_NS_netdb.inl: * ace/OS_NS_netdb.cpp: * ace/OS_NS_pwd.h: * ace/Ping_Socket.h: * ace/Process.cpp: * ace/ace_wchar.h: * ace/os_include/os_signal.h: * ace/os_include/os_stdio.h: Cleanup, removed lot of old VxWorks code not needed anymore * include/makeinclude/platform_sunos5_common.GNU: Add to the correct make flags
Diffstat (limited to 'ACE/ace/INET_Addr.cpp')
-rw-r--r--ACE/ace/INET_Addr.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/ACE/ace/INET_Addr.cpp b/ACE/ace/INET_Addr.cpp
index c27a758b7b3..d6cfcce05c5 100644
--- a/ACE/ace/INET_Addr.cpp
+++ b/ACE/ace/INET_Addr.cpp
@@ -411,9 +411,6 @@ ACE_INET_Addr::set (u_short port_number,
encode);
else
{
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
- hostent *hp = ACE_OS::gethostbyname (host_name);
-#else
hostent hentry;
ACE_HOSTENT_DATA buf;
int h_error = 0; // Not the same as errno!
@@ -422,7 +419,6 @@ ACE_INET_Addr::set (u_short port_number,
buf, &h_error);
if (hp == 0)
errno = h_error;
-#endif /* ACE_VXWORKS */
if (hp == 0)
{
@@ -857,19 +853,6 @@ ACE_INET_Addr::get_host_name_i (char hostname[], size_t len) const
}
else
{
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
- ACE_UNUSED_ARG (len);
- int error =
- ::hostGetByAddr ((int) this->inet_addr_.in4_.sin_addr.s_addr,
- hostname);
- if (error == OK)
- return 0;
- else
- {
- errno = error;
- return -1;
- }
-#else
void* addr = this->ip_addr_pointer ();
int size = this->ip_addr_size ();
int type = this->get_type ();
@@ -919,7 +902,6 @@ ACE_INET_Addr::get_host_name_i (char hostname[], size_t len) const
ACE_OS::strcpy (hostname, hp->h_name);
return 0;
-#endif /* ACE_VXWORKS */
}
}