diff options
-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 | ||