]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clientlog: fix time_t variables
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 19 May 2020 10:02:28 +0000 (12:02 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 21 May 2020 09:50:04 +0000 (11:50 +0200)
The last_hit and oldest_hit timestamps are uint32_t, not time_t.

clientlog.c

index aee3c18145b4eb1a731b87a1096becb1842272fe..ebc7d050945d414778cc2b776461fc6601c1b700 100644 (file)
@@ -165,7 +165,7 @@ static Record *
 get_record(IPAddr *ip)
 {
   unsigned int first, i;
-  time_t last_hit, oldest_hit = 0;
+  uint32_t last_hit, oldest_hit = 0;
   Record *record, *oldest_record;
 
   if (!active || (ip->family != IPADDR_INET4 && ip->family != IPADDR_INET6))