]> git.gsnw.org Git - fping.git/commitdiff
use int64_t for time-related variables
authorDavid Schweikert <david@schweikert.ch>
Wed, 5 Aug 2020 04:59:42 +0000 (07:59 +0300)
committerDavid Schweikert <david@schweikert.ch>
Wed, 5 Aug 2020 04:59:42 +0000 (07:59 +0300)
src/fping.c

index 6a57be4ad8ebaf4655793600f967d4091e169dd5..0bc2d81d6bfcedbafce9c332b4da8d020ef7916c 100644 (file)
@@ -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;