summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30e6ef6)
raw | patch | inline | side by side (parent: 30e6ef6)
author | Nathan Ward <nathan@primoris.co.nz> | |
Thu, 29 Oct 2015 01:22:44 +0000 (14:22 +1300) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sun, 8 Nov 2015 16:13:02 +0000 (17:13 +0100) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index d4a29c7e5a039139b2676bbc3891a69d933a17cf..acbdca0b66e6e404008d2a598c97183565659e27 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
tmp_unsigned = (uint32_t) *vl->val.integer;
tmp_signed = (int32_t) *vl->val.integer;
- if ((vl->type == ASN_INTEGER))
+ if (vl->type == ASN_INTEGER)
prefer_signed = 1;
DEBUG ("snmp plugin: Parsed int32 value is %"PRIu64".", tmp_unsigned);