mirror of
https://github.com/openwrt/packages.git
synced 2025-07-05 04:13:08 +00:00
Add small patch fixing compilation with GCC14. Remove inactive maintainer. Signed-off-by: Rosen Penev <rosenp@gmail.com>
12 lines
295 B
Diff
12 lines
295 B
Diff
--- 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 */
|