summaryrefslogtreecommitdiff
path: root/ASNMP/asnmp/integer.cpp
diff options
context:
space:
mode:
authormrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-01 00:09:15 +0000
committermrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-01 00:09:15 +0000
commita50077501c0e9d965ff98c17185ef4565996b8b3 (patch)
tree1b8df033368b83d4698b68e7ac69cb48a2e99888 /ASNMP/asnmp/integer.cpp
parent2d4911a6120251fb5584ac28fde4cc5dc4ab5b44 (diff)
downloadATCD-a50077501c0e9d965ff98c17185ef4565996b8b3.tar.gz
Updates for 1.6 (Eric Newton's changes)
Fix makefile to add -lasnmp to bld
Diffstat (limited to 'ASNMP/asnmp/integer.cpp')
-rw-r--r--ASNMP/asnmp/integer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ASNMP/asnmp/integer.cpp b/ASNMP/asnmp/integer.cpp
index 69ffc81446e..dacee4ffab6 100644
--- a/ASNMP/asnmp/integer.cpp
+++ b/ASNMP/asnmp/integer.cpp
@@ -61,7 +61,7 @@ SmiUINT32 SnmpUInt32::get_syntax()
}
// object validity
-SnmpUInt32::valid( void) const
+int SnmpUInt32::valid( void) const
{
return valid_flag;
}
@@ -120,7 +120,7 @@ SnmpSyntax* SnmpUInt32::clone() const
// ASCII format return
char * SnmpUInt32::to_string()
{
- sprintf(output_buffer, "%d", this->smival.value.uNumber);
+ sprintf(output_buffer, "%d", (int) (this->smival.value.uNumber));
return output_buffer;
}
@@ -219,7 +219,7 @@ SnmpSyntax* SnmpInt32::clone() const
char *SnmpInt32::to_string()
{
- sprintf(output_buffer, "%d", (long) this->smival.value.sNumber);
+ sprintf(output_buffer, "%d", (int) (long) this->smival.value.sNumber);
return output_buffer;
}