From 24f69e4d1d6d41c049561431e01c937772b95ba6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 11 Apr 2013 08:09:11 -0700 Subject: [PATCH] snmp plugin: Removed "mixed delaration". This should fix this warning Fabien Wernli reported: snmp.c:1381: warning: ISO C90 forbids mixed declarations and code --- src/snmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.", -- 2.11.0