summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-05-18 18:48:49 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-05-18 18:48:49 +0200
commit3b76fdc8405c4bd9ee5b1d798831a44e811c2fd6 (patch)
tree43eb0092640e440036d4abdba81795ac259cf1b3 /plugins-root/check_icmp.c
parentd92bbaef8386e77c00ecdeab9fc722fa4b9106b0 (diff)
downloadmonitoring-plugins-3b76fdc8405c4bd9ee5b1d798831a44e811c2fd6.tar.gz
Fix typos
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r--plugins-root/check_icmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 43eae276..937bc102 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -211,7 +211,7 @@ evaluate_host_wrapper evaluate_host(check_icmp_target_container host,
211 check_icmp_mode_switches modes, check_icmp_threshold warn, 211 check_icmp_mode_switches modes, check_icmp_threshold warn,
212 check_icmp_threshold crit); 212 check_icmp_threshold crit);
213 213
214/* Target aquisition */ 214/* Target acquisition */
215typedef struct { 215typedef struct {
216 int error_code; 216 int error_code;
217 check_icmp_target_container host; 217 check_icmp_target_container host;
@@ -1528,7 +1528,6 @@ static void finish(int sig, check_icmp_mode_switches modes, int min_hosts_alive,
1528 mp_subcheck sc_min_targets_alive = mp_subcheck_init(); 1528 mp_subcheck sc_min_targets_alive = mp_subcheck_init();
1529 sc_min_targets_alive = mp_set_subcheck_default_state(sc_min_targets_alive, STATE_OK); 1529 sc_min_targets_alive = mp_set_subcheck_default_state(sc_min_targets_alive, STATE_OK);
1530 1530
1531 // TODO problably broken now
1532 if (targets_ok >= min_hosts_alive) { 1531 if (targets_ok >= min_hosts_alive) {
1533 // TODO this should overwrite the main state 1532 // TODO this should overwrite the main state
1534 sc_min_targets_alive = mp_set_subcheck_state(sc_min_targets_alive, STATE_OK); 1533 sc_min_targets_alive = mp_set_subcheck_state(sc_min_targets_alive, STATE_OK);
@@ -1635,7 +1634,7 @@ static add_target_wrapper add_target(char *arg, const check_icmp_execution_mode
1635 switch (enforced_proto) { 1634 switch (enforced_proto) {
1636 case AF_UNSPEC: 1635 case AF_UNSPEC:
1637 /* 1636 /*
1638 * no enforced protocoll family 1637 * no enforced protocol family
1639 * try to parse the address with each one 1638 * try to parse the address with each one
1640 */ 1639 */
1641 sin = (struct sockaddr_in *)&address_storage; 1640 sin = (struct sockaddr_in *)&address_storage;