Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alarm: remove references to timezone #473

Merged
merged 1 commit into from
Nov 4, 2024
Merged

alarm: remove references to timezone #473

merged 1 commit into from
Nov 4, 2024

Conversation

ppannuto
Copy link
Member

Use of timezone in {get/set}timeofday is deprecated.

If something did try to pass us the parameter, our implementation would (incorrectly) ignore it. More significantly, our implementation does not check that the timeval struct is nonnull before dereferencing it.

This updates libtock's interface to match our implementation and the common-case scenario, and leaves the question of what to do if something tries to use the legacy tz parameter to whomever implements the wrapper.

Use of timezone in `{get/set}timeofday` is deprecated.

If something did try to pass us the parameter, our implementation would
(incorrectly) ignore it. More significantly, our implementation does not
check that the `timeval` struct is nonnull before dereferencing it.

This updates libtock's interface to match our implementation and the
common-case scenario, and leaves the question of what to do if something
tries to use the legacy `tz` parameter to whomever implements the
wrapper.
@bradjc bradjc added this pull request to the merge queue Nov 4, 2024
Merged via the queue into master with commit 7f2ced0 Nov 4, 2024
4 checks passed
@bradjc bradjc deleted the no-timezone branch November 4, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants