From: Bryan Christianson Date: Mon, 19 Apr 2021 21:32:52 +0000 (+1200) Subject: sys_timex: remove workaround for broken ntp_adjtime on macOS X-Git-Tag: 4.1-pre1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d80624f6179bba02af7a0b819b0ec5d5ab270f;p=thirdparty%2Fchrony.git sys_timex: remove workaround for broken ntp_adjtime on macOS 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. --- diff --git a/sys_timex.c b/sys_timex.c index 9a8504ea..0ee6c8ef 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; }