summaryrefslogtreecommitdiff
path: root/ACE/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-01-19 08:50:16 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-01-19 08:50:16 +0000
commitcd6fdf01c01fad69511dcaac040bafc4e044e098 (patch)
tree37bad7e54e83676b57db510625c5c6a0fc16fbf5 /ACE/ace/INET_Addr.cpp
parentb75e6e7faddb6070f290b109bd3ff28d703493ac (diff)
downloadATCD-cd6fdf01c01fad69511dcaac040bafc4e044e098.tar.gz
Mon Jan 19 07:49:12 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/INET_Addr.cpp: * ace/Log_Record.inl: Use ACE_HTONL macro * ace/INET_Addr.inl: Use ACE_NTOHS macro
Diffstat (limited to 'ACE/ace/INET_Addr.cpp')
-rw-r--r--ACE/ace/INET_Addr.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/ACE/ace/INET_Addr.cpp b/ACE/ace/INET_Addr.cpp
index a40c84a5807..229dcaebf6e 100644
--- a/ACE/ace/INET_Addr.cpp
+++ b/ACE/ace/INET_Addr.cpp
@@ -702,18 +702,12 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[],
: ACE_Addr (determine_type (), sizeof (inet_addr_))
{
ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
-#if !defined (ACE_LACKS_HTONL)
this->reset ();
if (this->set (port_name,
- htonl (inet_address),
+ ACE_HTONL (inet_address),
protocol) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
-#else
- ACE_UNUSED_ARG (port_name);
- ACE_UNUSED_ARG (inet_address);
- ACE_UNUSED_ARG (protocol);
-#endif
}
#if defined (ACE_HAS_WCHAR)
@@ -723,18 +717,12 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[],
: ACE_Addr (determine_type (), sizeof (inet_addr_))
{
ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
-#if !defined (ACE_LACKS_HTONL)
this->reset ();
if (this->set (port_name,
- htonl (inet_address),
+ ACE_HTONL (inet_address),
protocol) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
-#else
- ACE_UNUSED_ARG (port_name);
- ACE_UNUSED_ARG (inet_address);
- ACE_UNUSED_ARG (protocol);
-#endif
}
#endif /* ACE_HAS_WCHAR */