[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
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH] macOS: Remove temporary workaround for Apple signed/unsigned error in ntp_adjtime.
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Tue, 20 Apr 2021 09:32:52 +1200
- Cc: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:Message-Id:Date: Subject:To:From:Reply-To:Sender:List-Unsubscribe; bh=y1UWX5vNz4s84RFJlK92sHqgNKEUiNL0DxwqoO/SuVY=; b=tsCJQpPGRP+QA3xr9DSy9shF32 SguGpkv+95QNlPe0U/Py8kD0b5WoFZeuolmHuGGXgcKm2yDwAB+aOBypMe2z3pxpy6lcV7gJfUvwA 2tRwbYH+1GqmXBlHIr9ChE8W9Wiylwh9FW8dfU7a4GVEB2zmnOK6aW4ZryAKDI4jlEuKmgZIlLCD1 B6bsg6LaMVbWFBjT8OooOODbJSAoXcIc5GNbFT5LSyPS9BoYWz0TUl6yDrNGFRGVfpZ3fUB1jYYOp 6MidXO2tAYLwAqhCknolRPsm5PqJNTtykbwfrvkglAYapLg4J3wsvCiI8M5ul0d2ZoeMt3cGJjq3P sWGfv+lg==;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1618868000; h=from : subject : to : message-id : date; bh=y1UWX5vNz4s84RFJlK92sHqgNKEUiNL0DxwqoO/SuVY=; b=hfx5f48pLxTg1yFwvhbTiX1MU3elywqbnFbDm4P16+PtQgjNPZ/qa9oiQKIO0yIxAEZsHu Vuk8oIaiBbl7+YNgKg1tLojBSDbuJ5UwI8FD5/NLVaJuh1DAwQEGHvi61Odrtebg3ibPbUn8 Cn6dlc59zgEDDbL7D0riOOjcXt6Jd4twPUWtDI4dL7OkGdl9k77KqkSQcZaDt/jtQJ4WEfK8 iEbB//oD4BtE/gBhDF4IBn/3O5GDUuKuhbGs8S+/MZLU1rGpvFNlSWCOm/5s8b/Q+QSV8VCl nui44Ju3Gjw421oxtqNBzWC4tuyV9C5nIugbLwKjmpoLEi4USZums9Dg==
- Feedback-id: 149811m:149811acx33YQ:149811s3BptsydYY
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.