From: David Schweikert Date: Wed, 5 Aug 2020 04:59:42 +0000 (+0300) Subject: use int64_t for time-related variables X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f16eea49ff64df3ef1960e29bf2f157815e282b;p=fping.git use int64_t for time-related variables --- 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;