diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-08 16:35:02 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-08 16:35:02 +0200 |
commit | c38276853057e2152de5106fc1de9c002b7d964b (patch) | |
tree | 5fd018ec81bb7a7c27203de7b424650724816156 /plugins | |
parent | 2aabc4d4904a5a0994cac661a20c27ec3d1c79ee (diff) | |
download | monitoring-plugins-c38276853057e2152de5106fc1de9c002b7d964b.tar.gz |
Little adaptions for old compilers
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_snmp.d/check_snmp_helpers.c | 7 |
1 files 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) { | |||
273 | } | 273 | } |
274 | result.response_values[loop_index].value.doubleVal = *(vars->val.doubleVal); | 274 | result.response_values[loop_index].value.doubleVal = *(vars->val.doubleVal); |
275 | result.response_values[loop_index].type = vars->type; | 275 | result.response_values[loop_index].type = vars->type; |
276 | break; | 276 | } break; |
277 | } | ||
278 | case ASN_IPADDRESS: | 277 | case ASN_IPADDRESS: |
279 | if (verbose) { | 278 | if (verbose) { |
280 | printf("Debug: Got an IP address\n"); | 279 | printf("Debug: Got an IP address\n"); |
@@ -282,13 +281,13 @@ snmp_responces do_snmp_query(check_snmp_config_snmp_parameters parameters) { | |||
282 | result.response_values[loop_index].type = vars->type; | 281 | result.response_values[loop_index].type = vars->type; |
283 | 282 | ||
284 | // TODO: print address here, state always ok? or regex match? | 283 | // TODO: print address here, state always ok? or regex match? |
285 | continue; | 284 | break; |
286 | default: | 285 | default: |
287 | if (verbose) { | 286 | if (verbose) { |
288 | printf("Debug: Got a unmatched result type: %hhu\n", vars->type); | 287 | printf("Debug: Got a unmatched result type: %hhu\n", vars->type); |
289 | } | 288 | } |
290 | // TODO: Error here? | 289 | // TODO: Error here? |
291 | continue; | 290 | break; |
292 | } | 291 | } |
293 | } | 292 | } |
294 | 293 | ||