[Git][NTPsec/ntpsec][master] Fix build errors when leap smear support is enabled
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Jan 29 22:48:28 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
2cfd3b9c by Matt Selsky at 2017-01-29T17:48:19-05:00
Fix build errors when leap smear support is enabled
GitLab issue #235
- - - - -
2 changed files:
- ntpd/ntp_proto.c
- ntpd/ntp_timer.c
Changes:
=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -2298,7 +2298,7 @@ fast_xmit(
xpkt.refid = convertLFPToRefID(leap_smear.offset);
DPRINTF(2, ("fast_xmit: leap_smear.in_progress: refid %8x, smear %s\n",
ntohl(xpkt.refid),
- lfptoa(&leap_smear.offset, 8)
+ lfptoa(leap_smear.offset, 8)
));
}
xpkt.reftime = htonl_fp(this_ref_time);
=====================================
ntpd/ntp_timer.c
=====================================
--- a/ntpd/ntp_timer.c
+++ b/ntpd/ntp_timer.c
@@ -479,7 +479,7 @@ check_leapsec(
/*
* Update the current leap smear offset, eventually 0.0 if outside smear interval.
*/
- DTOLFP(leap_smear.doffset, &leap_smear.offset);
+ leap_smear.offset = dtolfp(leap_smear.doffset);
#endif /* ENABLE_LEAP_SMEAR */
/* Full hit. Eventually step the clock, but always
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2cfd3b9c3f176ff38acd4f1c7f47b3d96f1ee6f7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170129/0aaef724/attachment.html>
More information about the vc
mailing list