| [chrony-dev] [PATCH] macOS driver using timeval instead of timespec The macOS driver was using the old settimeofday() variables. Now uses timespec as required by updated PRV_SetTime() |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH] macOS driver using timeval instead of timespec The macOS driver was using the old settimeofday() variables. Now uses timespec as required by updated PRV_SetTime()
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Fri, 6 Feb 2026 20:02:51 +1300
- Cc: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1770361413; h=from : subject : to : message-id : date; bh=AmuGOpylg1jwRJHC5Xy6/OUsyVp7h3H+4P3oIqwkN4c=; b=Hf2CTJwh+SY0OdgcSvDSdrPuwIA+l9Cxx+DRtZjyl75nADXwbrKLgyyV+ETEy5dtvGUwd dDio1JsvulcHZ8vYhJB0DblaPBm12RYbHl7IdHDjWmi05fNR8T46UIJwfylIvphNJHzm1v1 P8THEZutYR/qMX3ug5ZdLeRFsRbZjAKdzR3E67bKXfXln/dFTcNv3B6cwK86RKCfie9UDJ8 qB97J59kdlpb11E6r1pIRn3aUdA3Di9UkyeEKZ/dWDpffrvVKCVt9r7UkHBrVU2IGeGioZo mfW/EyZOQk8HvJYALOeCbRr9Tqln7RTkaPs0fkSWmIuFfnU6Bjy9VaQrV3Vg==
- Feedback-id: 149811m:149811acx33YQ:149811sAY9qvV3Sy
---
sys_macosx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys_macosx.c b/sys_macosx.c
index e233e98..2f351d7 100644
--- a/sys_macosx.c
+++ b/sys_macosx.c
@@ -236,16 +236,14 @@ static int
apply_step_offset(double offset)
{
struct timespec old_time, new_time, T1;
- struct timeval new_time_tv;
stop_adjust();
LCL_ReadRawTime(&old_time);
UTI_AddDoubleToTimespec(&old_time, -offset, &new_time);
- UTI_TimespecToTimeval(&new_time, &new_time_tv);
- if (PRV_SetTime(CLOCK_REALTIME, &new_time_tv) < 0) {
+ if (PRV_SetTime(CLOCK_REALTIME, &new_time) < 0) {
DEBUG_LOG("clock_settime() failed");
return 0;
}
--
2.50.1 (Apple Git-155)
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.