summaryrefslogtreecommitdiffstats
path: root/net/ntpd/patches/010-gcc14.patch
blob: ff8ce0bae57a409d984e8f4494b239d219629a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/libntp/machines.c
+++ b/libntp/machines.c
@@ -477,7 +477,7 @@ ntp_set_tod(
 #endif /* HAVE_SETTIMEOFDAY */
 #ifdef HAVE_STIME
 	if (rc && (SET_TOD_STIME == tod || !tod)) {
-		long tp = tvp->tv_sec;
+		time_t tp = tvp->tv_sec;
 
 		errno = 0;
 		rc = stime(&tp); /* lie as bad as SysVR4 */