]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_timex: remove workaround for broken ntp_adjtime on macOS
authorBryan Christianson <bryan@whatroute.net>
Mon, 19 Apr 2021 21:32:52 +0000 (09:32 +1200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 20 Apr 2021 13:30:47 +0000 (15:30 +0200)
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

index 9a8504eace693b452f00a2ada25f1a55cf5d35ad..0ee6c8ef02a4fc06418f51946ca5ebf2843499d0 100644 (file)
@@ -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;
 }