From c38276853057e2152de5106fc1de9c002b7d964b Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 8 Sep 2025 16:35:02 +0200 Subject: Little adaptions for old compilers --- plugins/check_snmp.d/check_snmp_helpers.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/check_snmp.d/check_snmp_helpers.c b/plugins/check_snmp.d/check_snmp_helpers.c index 9fa396d8..e18da4a3 100644 --- a/plugins/check_snmp.d/check_snmp_helpers.c +++ b/plugins/check_snmp.d/check_snmp_helpers.c @@ -273,8 +273,7 @@ snmp_responces do_snmp_query(check_snmp_config_snmp_parameters parameters) { } result.response_values[loop_index].value.doubleVal = *(vars->val.doubleVal); result.response_values[loop_index].type = vars->type; - break; - } + } break; case ASN_IPADDRESS: if (verbose) { printf("Debug: Got an IP address\n"); @@ -282,13 +281,13 @@ snmp_responces do_snmp_query(check_snmp_config_snmp_parameters parameters) { result.response_values[loop_index].type = vars->type; // TODO: print address here, state always ok? or regex match? - continue; + break; default: if (verbose) { printf("Debug: Got a unmatched result type: %hhu\n", vars->type); } // TODO: Error here? - continue; + break; } } -- cgit v1.2.3-74-g34f1