projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
snmp plugin: Don't print a warning if the ASN type is "ASN_NULL".
[collectd.git]
/
src
/
snmp.c
diff --git
a/src/snmp.c
b/src/snmp.c
index
fee2f6d
..
96a0971
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-752,6
+752,13
@@
static value_t csnmp_value_list_to_value (struct variable_list *vl, int type,
{
/* We'll handle this later.. */
}
+#ifdef ASN_NULL
+ else if (vl->type == ASN_NULL)
+ {
+ /* Don't print a warning. */
+ defined = 0;
+ }
+#endif
else
{
WARNING ("snmp plugin: I don't know the ASN type `%i'", (int) vl->type);