projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1199 from rubenk/remove-gcrypt-exec-prefix-check
[collectd.git]
/
src
/
snmp.c
diff --git
a/src/snmp.c
b/src/snmp.c
index
d9a932a
..
6a03a19
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-924,8
+924,7
@@
static value_t csnmp_value_list_to_value (struct variable_list *vl, int type,
tmp_unsigned = (uint32_t) *vl->val.integer;
tmp_signed = (int32_t) *vl->val.integer;
tmp_unsigned = (uint32_t) *vl->val.integer;
tmp_signed = (int32_t) *vl->val.integer;
- if ((vl->type == ASN_INTEGER)
- || (vl->type == ASN_GAUGE))
+ if (vl->type == ASN_INTEGER)
prefer_signed = 1;
DEBUG ("snmp plugin: Parsed int32 value is %"PRIu64".", tmp_unsigned);
prefer_signed = 1;
DEBUG ("snmp plugin: Parsed int32 value is %"PRIu64".", tmp_unsigned);
@@
-1681,7
+1680,7
@@
static int csnmp_read_value (host_definition_t *host, data_definition_t *data)
if (host->sess_handle == NULL)
{
if (host->sess_handle == NULL)
{
- DEBUG ("snmp plugin: csnmp_read_
tabl
e: host->sess_handle == NULL");
+ DEBUG ("snmp plugin: csnmp_read_
valu
e: host->sess_handle == NULL");
return (-1);
}
return (-1);
}