From 380491b437412dc4d391f2c0e38410132626423f Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Fri, 2 Aug 2024 09:59:00 +0200 Subject: [PATCH] Fix build with gcc14 --- pppd/sys-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 561b150..4a10a4f 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -3030,7 +3030,7 @@ void logwtmp (const char *line, const char *name, const char *host) strncpy(ut.ut_user, name, sizeof(ut.ut_user)); strncpy(ut.ut_line, line, sizeof(ut.ut_line)); - time(&ut.ut_time); + time((time_t *) &ut.ut_time); ut.ut_type = USER_PROCESS; ut.ut_pid = mypid; -- 2.46.1