[chrony-dev] [PATCH] macOS: Remove temporary workaround for Apple signed/unsigned error in ntp_adjtime.

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Early beta releases of macOS Big Sur had a signed/unsigned error in Apple's implementation of ntp_adjtime. Apple have since fixed this error and the workaround is no longer required.
---
 sys_timex.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys_timex.c b/sys_timex.c
index 9a8504e..0ee6c8e 100644
--- a/sys_timex.c
+++ b/sys_timex.c
@@ -75,13 +75,6 @@ convert_timex_frequency(const struct timex *txc)
 
   freq_ppm = txc->freq / FREQ_SCALE;
 
-#ifdef MACOSX
-  /* Temporary workaround for Apple bug treating freq as unsigned number */
-  if (freq_ppm > 32767) {
-    freq_ppm -= 65536;
-  }
-#endif
-
   return -freq_ppm;
 }
 
-- 
2.24.3 (Apple Git-128)


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