diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-03 12:56:20 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-15 21:04:32 +0100 |
commit | fc7af3d617f375cfa4f89268a90ab8a0cac49a3c (patch) | |
tree | 4ab5e25ce2fc26478009eeb680e77dd4631949aa | |
parent | ed5b7f0c9faa4eb5c34e0e5fe8da61bf7f4d53dc (diff) | |
download | monitoring-plugins-fc7af3d.tar.gz |
Remove unused variable
-rw-r--r-- | plugins-root/check_icmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index a271ab6e..f60be7ec 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -722,7 +722,7 @@ main(int argc, char **argv) | |||
722 | static void | 722 | static void |
723 | run_checks() | 723 | run_checks() |
724 | { | 724 | { |
725 | u_int i, t, result; | 725 | u_int i, t; |
726 | u_int final_wait, time_passed; | 726 | u_int final_wait, time_passed; |
727 | 727 | ||
728 | /* this loop might actually violate the pkt_interval or target_interval | 728 | /* this loop might actually violate the pkt_interval or target_interval |
@@ -740,9 +740,9 @@ run_checks() | |||
740 | 740 | ||
741 | /* we're still in the game, so send next packet */ | 741 | /* we're still in the game, so send next packet */ |
742 | (void)send_icmp_ping(icmp_sock, table[t]); | 742 | (void)send_icmp_ping(icmp_sock, table[t]); |
743 | result = wait_for_reply(icmp_sock, target_interval); | 743 | wait_for_reply(icmp_sock, target_interval); |
744 | } | 744 | } |
745 | result = wait_for_reply(icmp_sock, pkt_interval * targets); | 745 | wait_for_reply(icmp_sock, pkt_interval * targets); |
746 | } | 746 | } |
747 | 747 | ||
748 | if(icmp_pkts_en_route && targets_alive) { | 748 | if(icmp_pkts_en_route && targets_alive) { |
@@ -762,7 +762,7 @@ run_checks() | |||
762 | * haven't yet */ | 762 | * haven't yet */ |
763 | if(debug) printf("Waiting for %u micro-seconds (%0.3f msecs)\n", | 763 | if(debug) printf("Waiting for %u micro-seconds (%0.3f msecs)\n", |
764 | final_wait, (float)final_wait / 1000); | 764 | final_wait, (float)final_wait / 1000); |
765 | result = wait_for_reply(icmp_sock, final_wait); | 765 | wait_for_reply(icmp_sock, final_wait); |
766 | } | 766 | } |
767 | } | 767 | } |
768 | 768 | ||