You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/conserver/files/conserver-8.2.2-time-argume...

23 lines
754 B

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);