From 1afd5b23d77876089bf814fe09c53022258dbfee Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 19 May 2020 12:02:28 +0200 Subject: [PATCH] clientlog: fix time_t variables The last_hit and oldest_hit timestamps are uint32_t, not time_t. --- clientlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientlog.c b/clientlog.c index aee3c18..ebc7d05 100644 --- a/clientlog.c +++ b/clientlog.c @@ -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))