summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7bac61)
raw | patch | inline | side by side (parent: e7bac61)
author | Florian Forster <octo@collectd.org> | |
Thu, 11 Apr 2013 15:09:11 +0000 (08:09 -0700) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Apr 2013 15:09:11 +0000 (08:09 -0700) |
This should fix this warning Fabien Wernli reported:
snmp.c:1381: warning: ISO C90 forbids mixed declarations and code
snmp.c:1381: warning: ISO C90 forbids mixed declarations and code
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index cff38a4066d83f748b32bb2c2abecfb228dadd54..4f849320a3f3f6bdc2bdfb3730bf60fdc08016c5 100644 (file)
--- 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.",