summaryrefslogtreecommitdiff
path: root/ace/SOCK_CODgram.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-07 04:53:38 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-07 04:53:38 +0000
commit75848ad6f75bdfdf02fdc6a8498c76cb0239943d (patch)
tree0f5575f0d8a57392b7ee73eab8115747e4572279 /ace/SOCK_CODgram.cpp
parentbc4de1af871b197082ea9f6d3986a9f0dca41fe4 (diff)
downloadATCD-75848ad6f75bdfdf02fdc6a8498c76cb0239943d.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/SOCK_CODgram.cpp')
-rw-r--r--ace/SOCK_CODgram.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/SOCK_CODgram.cpp b/ace/SOCK_CODgram.cpp
index eb15e357c43..a4bf039a8df 100644
--- a/ace/SOCK_CODgram.cpp
+++ b/ace/SOCK_CODgram.cpp
@@ -58,7 +58,7 @@ ACE_SOCK_CODgram::open (const ACE_Addr &remote, const ACE_Addr &local,
{
int error = 0;
- if (&local == &ACE_Addr::sap_any && &remote == &ACE_Addr::sap_any)
+ if (local == ACE_Addr::sap_any && remote == ACE_Addr::sap_any)
{
// Assign an arbitrary port number from the transient range!!
@@ -67,14 +67,14 @@ ACE_SOCK_CODgram::open (const ACE_Addr &remote, const ACE_Addr &local,
error = 1;
}
// We are binding just the local address.
- else if (&local != &ACE_Addr::sap_any && &remote == &ACE_Addr::sap_any)
+ else if (local != ACE_Addr::sap_any && remote == ACE_Addr::sap_any)
{
if (ACE_OS::bind (this->get_handle (), (sockaddr *) local.get_addr (),
local.get_size ()) == -1)
error = 1;
}
// We are connecting to the remote address.
- else if (&local == &ACE_Addr::sap_any && &remote != &ACE_Addr::sap_any)
+ else if (local == ACE_Addr::sap_any && remote != ACE_Addr::sap_any)
{
if (ACE_OS::connect (this->get_handle (), (sockaddr *) remote.get_addr (),
remote.get_size ()) == -1)