summaryrefslogtreecommitdiff
blob: 0a42987135b10a9001d3c79652564ab8315d68b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 3d9d5509c90524256861dd7cf0b7c0c6fdf5424a Mon Sep 17 00:00:00 2001
From: Ed Maste <emaste@freebsd.org>
Date: Wed, 10 Oct 2018 12:56:26 -0400
Subject: [PATCH] Correct argument type passed to time()

---
 conserver/readcfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conserver/readcfg.c b/conserver/readcfg.c
index 949b9bf..d5bb90a 100644
--- a/conserver/readcfg.c
+++ b/conserver/readcfg.c
@@ -3116,7 +3116,7 @@ ConsoleAdd(CONSENT *c)
 	pCEmatch->logfilemax = c->logfilemax;
 	if (pCEmatch->logfilemax != (off_t) 0 &&
 	    timers[T_ROLL] == (time_t)0)
-	    timers[T_ROLL] = time((time_t)0);
+	    timers[T_ROLL] = time((time_t *)0);
 
 	SwapStr(&pCEmatch->motd, &c->motd);
 	SwapStr(&pCEmatch->idlestring, &c->idlestring);