summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-04-13 19:08:50 +0000
committerSteve Huston <shuston@riverace.com>2004-04-13 19:08:50 +0000
commit534612371d8353cc5f386e56bbcff39a95e2327c (patch)
tree4ddb7f6f1aa50057cb00c7ac57627083b7cdb0f6 /ASNMP
parentb9b03b66f1ac2e9d8895b9f74334079003b3a15e (diff)
downloadATCD-534612371d8353cc5f386e56bbcff39a95e2327c.tar.gz
ChangeLogTag:Wed Apr 7 12:27:19 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ASNMP')
-rw-r--r--ASNMP/asnmp/target.cpp3
-rw-r--r--ASNMP/tests/Integer_Test.cpp2
2 files changed, 1 insertions, 4 deletions
diff --git a/ASNMP/asnmp/target.cpp b/ASNMP/asnmp/target.cpp
index ac395792b4b..d6f8de6151f 100644
--- a/ASNMP/asnmp/target.cpp
+++ b/ASNMP/asnmp/target.cpp
@@ -159,9 +159,6 @@ SnmpTarget& SnmpTarget::operator=(const SnmpTarget& lhs)
int operator==(const SnmpTarget& lhs, const SnmpTarget& rhs)
{
- if (lhs == rhs)
- return 1;
-
if (lhs.timeout_ != rhs.timeout_)
return 0;
diff --git a/ASNMP/tests/Integer_Test.cpp b/ASNMP/tests/Integer_Test.cpp
index fbb043a3ca2..939ca05fc43 100644
--- a/ASNMP/tests/Integer_Test.cpp
+++ b/ASNMP/tests/Integer_Test.cpp
@@ -49,7 +49,7 @@ static unsigned long ul = ULONG_MAX, def = 0;
static int i = INT_MAX, ni = INT_MIN;
static unsigned int ui = UINT_MAX;
static unsigned short us = 10;
-static short si = 32768;
+static unsigned short si = 32768;
/*
SnmpInt32( void);