summaryrefslogtreecommitdiff
path: root/ace/DEV_Addr.i
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-03 08:53:28 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-03 08:53:28 +0000
commitd2b814ec40da06354fefcf55182e34c2f7d68050 (patch)
tree25ab83603ead37dfdd6d273e2210b05388412b9b /ace/DEV_Addr.i
parent4d2d54281a5be87021a36038ab4120b94fd4cdbf (diff)
downloadATCD-d2b814ec40da06354fefcf55182e34c2f7d68050.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/DEV_Addr.i')
-rw-r--r--ace/DEV_Addr.i16
1 files changed, 8 insertions, 8 deletions
diff --git a/ace/DEV_Addr.i b/ace/DEV_Addr.i
index f9c213c35e5..89b4298332c 100644
--- a/ace/DEV_Addr.i
+++ b/ace/DEV_Addr.i
@@ -3,7 +3,7 @@
#include "ace/SString.h"
-ACE_INLINE void
+ACE_INLINE void
ACE_DEV_Addr::set (LPCTSTR devname)
{
ACE_TRACE ("ACE_DEV_Addr::set");
@@ -31,13 +31,13 @@ ACE_DEV_Addr::addr_to_string (char *s, size_t len) const
{
ACE_TRACE ("ACE_DEV_Addr::addr_to_string");
- ACE_OS::strncpy (s,
- ACE_MULTIBYTE_STRING (this->devname_),
+ ACE_OS::strncpy (s,
+ ACE_MULTIBYTE_STRING (this->devname_),
len);
return 0;
}
-// Return a pointer to the address.
+// Return a pointer to the address.
ACE_INLINE void *
ACE_DEV_Addr::get_addr (void) const
@@ -47,15 +47,16 @@ ACE_DEV_Addr::get_addr (void) const
return (void *) &this->devname_;
}
-// Compare two addresses for equality.
+// Compare two addresses for equality.
ACE_INLINE int
ACE_DEV_Addr::operator == (const ACE_Addr &sap) const
{
ACE_TRACE ("ACE_DEV_Addr::operator=");
- return ACE_OS::strcmp (this->devname_,
- ((ACE_DEV_Addr &) sap).devname_) == 0;
+ return this->ACE_Addr::operator== (sap)
+ && ACE_OS::strcmp (this->devname_,
+ ((ACE_DEV_Addr &) sap).devname_) == 0;
}
// Compare two addresses for inequality.
@@ -77,4 +78,3 @@ ACE_DEV_Addr::get_path_name (void) const
return this->devname_;
}
-