diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-18 18:48:49 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-18 18:48:49 +0200 |
| commit | 3b76fdc8405c4bd9ee5b1d798831a44e811c2fd6 (patch) | |
| tree | 43eb0092640e440036d4abdba81795ac259cf1b3 | |
| parent | d92bbaef8386e77c00ecdeab9fc722fa4b9106b0 (diff) | |
| download | monitoring-plugins-3b76fdc8405c4bd9ee5b1d798831a44e811c2fd6.tar.gz | |
Fix typos
| -rw-r--r-- | plugins-root/check_icmp.c | 5 |
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 */ |
| 215 | typedef struct { | 215 | typedef 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; |
