aports/community/ly/use-time_t.patch
Celeste 9e80251dca community/ly: fix build with gcc 14
use time_t so this builds on 32-bit
2024-09-01 14:49:15 +00:00

12 lines
352 B
Diff

--- a/src/login.c
+++ b/src/login.c
@@ -281,7 +281,7 @@
/* only correct for ptys named /dev/tty[pqr][0-9a-z] */
strcpy(entry->ut_id, ttyname(STDIN_FILENO) + strlen("/dev/tty"));
- time((long int *) &entry->ut_time);
+ time((time_t *) &entry->ut_time);
strncpy(entry->ut_user, username, UT_NAMESIZE);
memset(entry->ut_host, 0, UT_HOSTSIZE);