[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 ]


---
 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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/