diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-07 19:16:29 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-07 19:16:29 +0000 |
commit | fa69369cd06f842ba2549444301b3407da5f9957 (patch) | |
tree | fcad78811b5ee4d0219064be1fdabb9e71c2c999 /ace/INET_Addr.cpp | |
parent | aca87aa28d5e20c88e841a119d78effb8b929354 (diff) | |
download | ATCD-fa69369cd06f842ba2549444301b3407da5f9957.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r-- | ace/INET_Addr.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp index 4b13767d66e..24cbb2988cf 100644 --- a/ace/INET_Addr.cpp +++ b/ace/INET_Addr.cpp @@ -94,7 +94,8 @@ ACE_INET_Addr::set (const ACE_INET_Addr &sa) { ACE_TRACE ("ACE_INET_Addr::set"); - this->ACE_Addr::base_set (sa.get_type (), sa.get_size ()); + this->ACE_Addr::base_set (sa.get_type (), + sa.get_size ()); if (sa.get_type () == AF_ANY) // Ugh, this is really a base class, so don't copy it. @@ -232,9 +233,11 @@ ACE_INET_Addr::set (u_short port_number, errno = EINVAL; return -1; } - else if (ACE_OS::inet_aton (ASYS_ONLY_MULTIBYTE_STRING (host_name), (struct in_addr *) &addr) == 1) - return this->set (port_number, encode ? ntohl (addr) : addr, encode); - + else if (ACE_OS::inet_aton (ASYS_ONLY_MULTIBYTE_STRING (host_name), + (struct in_addr *) &addr) == 1) + return this->set (port_number, + encode ? ntohl (addr) : addr, + encode); else { #if defined (VXWORKS) || defined (CHORUS) |