From 4f16eea49ff64df3ef1960e29bf2f157815e282b Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Wed, 5 Aug 2020 07:59:42 +0300 Subject: [PATCH] use int64_t for time-related variables --- src/fping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fping.c b/src/fping.c index 6a57be4..0bc2d81 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1252,7 +1252,7 @@ void add_range(char* start, char* end) void main_loop() { - long lt; + int64_t lt; int64_t wait_time_ns; struct event *event; struct host_entry *h; @@ -2237,7 +2237,7 @@ int wait_for_reply(int64_t wait_time) struct sockaddr_storage response_addr; int n, avg; HOST_ENTRY* h; - long this_reply; + int64_t this_reply; int this_count; int64_t recv_time=0; SEQMAP_VALUE* seqmap_value;