From: Florian Forster Date: Thu, 11 Apr 2013 15:09:11 +0000 (-0700) Subject: snmp plugin: Removed "mixed delaration". X-Git-Tag: collectd-5.3.1~8 X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=commitdiff_plain;h=24f69e4d1d6d41c049561431e01c937772b95ba6 snmp plugin: Removed "mixed delaration". This should fix this warning Fabien Wernli reported: snmp.c:1381: warning: ISO C90 forbids mixed declarations and code --- diff --git a/src/snmp.c b/src/snmp.c index cff38a40..4f849320 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1378,9 +1378,8 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data) /* Calculate the current suffix. This is later used to check that the * suffix is increasing. This also checks if we left the subtree */ - int ret; - ret = csnmp_oid_suffix (&suffix, &vb_name, data->values + i); - if (ret != 0) + status = csnmp_oid_suffix (&suffix, &vb_name, data->values + i); + if (status != 0) { DEBUG ("snmp plugin: host = %s; data = %s; i = %i; " "Value probably left its subtree.",