From: Florian Forster Date: Wed, 19 May 2010 09:47:45 +0000 (+0200) Subject: snmp plugin: Don't print a warning if the ASN type is "ASN_NULL". X-Git-Tag: collectd-4.9.3~18 X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=commitdiff_plain;h=0e1bb73758ac56f435e1313e6d78c4e41d53a78d snmp plugin: Don't print a warning if the ASN type is "ASN_NULL". Thanks to "Flyinvap" for pointing this out. --- diff --git a/src/snmp.c b/src/snmp.c index fee2f6d5..96a0971c 100644 --- 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);