diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-06-23 11:41:24 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-06-23 11:41:24 +0200 |
commit | 771ccfa52691e591be3736b6d03f36e69d82e464 (patch) | |
tree | 5179e4957283b336703ba39185c241c92f0d2a1e /plugins-root/check_icmp.c | |
parent | 7e9519e0ad730ede8fad0503102e1373b8999be2 (diff) | |
download | monitoring-plugins-771ccfa52691e591be3736b6d03f36e69d82e464.tar.gz |
check_icmp: remove unnecessary variable
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r-- | plugins-root/check_icmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 3edfffa2..be686ee3 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -407,7 +407,6 @@ check_icmp_config_wrapper process_arguments(int argc, char **argv) { | |||
407 | if ((unsigned long)size >= (sizeof(struct icmp) + sizeof(struct icmp_ping_data)) && | 407 | if ((unsigned long)size >= (sizeof(struct icmp) + sizeof(struct icmp_ping_data)) && |
408 | size < MAX_PING_DATA) { | 408 | size < MAX_PING_DATA) { |
409 | result.config.icmp_data_size = (unsigned short)size; | 409 | result.config.icmp_data_size = (unsigned short)size; |
410 | result.config.icmp_pkt_size = (unsigned short)(size + ICMP_MINLEN); | ||
411 | } else { | 410 | } else { |
412 | usage_va("ICMP data length must be between: %lu and %lu", | 411 | usage_va("ICMP data length must be between: %lu and %lu", |
413 | sizeof(struct icmp) + sizeof(struct icmp_ping_data), | 412 | sizeof(struct icmp) + sizeof(struct icmp_ping_data), |
@@ -945,7 +944,7 @@ int main(int argc, char **argv) { | |||
945 | printf("crit = {%ld, %u%%}, warn = {%ld, %u%%}\n", config.crit.rta, config.crit.pl, | 944 | printf("crit = {%ld, %u%%}, warn = {%ld, %u%%}\n", config.crit.rta, config.crit.pl, |
946 | config.warn.rta, config.warn.pl); | 945 | config.warn.rta, config.warn.pl); |
947 | printf("target_interval: %ld\n", config.target_interval); | 946 | printf("target_interval: %ld\n", config.target_interval); |
948 | printf("icmp_pkt_size: %u timeout: %u\n", config.icmp_pkt_size, timeout); | 947 | printf("icmp_pkt_size: %u timeout: %u\n", config.icmp_data_size + ICMP_MINLEN, timeout); |
949 | } | 948 | } |
950 | 949 | ||
951 | if (config.min_hosts_alive < -1) { | 950 | if (config.min_hosts_alive < -1) { |