diff options
author | mrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-06 03:17:47 +0000 |
---|---|---|
committer | mrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-06 03:17:47 +0000 |
commit | a65bc4fd24d3bea82c517e765695de420eaa560f (patch) | |
tree | e97de398c75f5cd254d775a2f257959d93725adc /ASNMP/tests | |
parent | 88524e5623dab0459c4f9f2d24682d5a137cdddc (diff) | |
download | ATCD-a65bc4fd24d3bea82c517e765695de420eaa560f.tar.gz |
changed api name fixed this
Diffstat (limited to 'ASNMP/tests')
-rw-r--r-- | ASNMP/tests/Address_Test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ASNMP/tests/Address_Test.cpp b/ASNMP/tests/Address_Test.cpp index 936e6b75fcc..1a212e78bf0 100644 --- a/ASNMP/tests/Address_Test.cpp +++ b/ASNMP/tests/Address_Test.cpp @@ -127,7 +127,7 @@ static void TestGenAddr() SnmpSyntax& operator=( SnmpSyntax &val); IpAddress& operator=( const IpAddress &ipaddress); SnmpSyntax *clone() const; - char *friendly_name(int &status); + char *resolve_hostname(int &status); virtual char *to_string() ; virtual operator const char *() const; void mask( const IpAddress& ipaddr); @@ -180,17 +180,17 @@ static void TestIpAddress() // other routines int status = 1; - const char *ptr = ia5.friendly_name(status); + const char *ptr = ia5.resolve_hostname(status); ACE_ASSERT(status == 0); ACE_ASSERT(ptr != 0); - ACE_DEBUG ((LM_DEBUG, "(%P|%t) IpAddress:ia5.friendly_name():(\"\") [%s]\n", + ACE_DEBUG ((LM_DEBUG, "(%P|%t) IpAddress:ia5.resolve_hostname():(\"\") [%s]\n", ptr)); // now lets try one we setup with a hostname - ptr = ia3.friendly_name(status); + ptr = ia3.resolve_hostname(status); ACE_ASSERT(status == 0); ACE_ASSERT(ptr != 0); - ACE_DEBUG ((LM_DEBUG, "(%P|%t) IpAddress:ia3.friendly_name()(\"localhost\") [%s]\n", + ACE_DEBUG ((LM_DEBUG, "(%P|%t) IpAddress:ia3.resolve_hostname()(\"localhost\") [%s]\n", ptr)); ptr = (const char *)ia5; |