summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-10 15:34:06 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-10 15:34:06 +0000
commit412e3e0efe6319264533747be7710d20b2813b44 (patch)
tree4a3f2d198a2b08d2ea56d18f492cc7d6fea48c6b /ace/INET_Addr.cpp
parent997f77167ba666e0e27fcb07e9330b5c30fc332a (diff)
downloadATCD-412e3e0efe6319264533747be7710d20b2813b44.tar.gz
(get_host_name): moved declaration of local hentry so that it's not seen on CHORUS
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r--ace/INET_Addr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index 7809955eda0..472b09c7451 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -348,7 +348,7 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[],
{
ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
if (this->set (port_name, host_name) == -1)
- ACE_ERROR ((LM_ERROR,
+ ACE_ERROR ((LM_ERROR,
"ACE_INET_Addr::ACE_INET_Addr"));
}
@@ -390,7 +390,6 @@ ACE_INET_Addr::get_host_name (char hostname[], size_t len) const
return -1;
}
#else
- hostent hentry;
int a_len = sizeof this->inet_addr_.sin_addr.s_addr;
int error = 0;
@@ -399,6 +398,7 @@ ACE_INET_Addr::get_host_name (char hostname[], size_t len) const
a_len,
this->addr_type_);
#else
+ hostent hentry;
ACE_HOSTENT_DATA buf;
hostent *hp = ACE_OS::gethostbyaddr_r ((char *) &this->inet_addr_.sin_addr,
a_len,