[Git][NTPsec/ntpsec][master] Make a length assumption more explicit.
Eric S. Raymond
gitlab at mg.gitlab.com
Mon Oct 17 11:12:48 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
850d35c1 by Eric S. Raymond at 2016-10-17T07:12:24-04:00
Make a length assumption more explicit.
- - - - -
1 changed file:
- include/ntp_control.h
Changes:
=====================================
include/ntp_control.h
=====================================
--- a/include/ntp_control.h
+++ b/include/ntp_control.h
@@ -79,7 +79,7 @@ struct ntp_control {
#define CTL_SYS_MAXEVENTS 15
#define CTL_SYS_STATUS(li, source, nevnt, evnt) \
- (((((unsigned short)(li))<< 14)&0xc000) | \
+ (((((li) & 0xffff) << 14)&0xc000) | \
(((source)<<8)&0x3f00) | \
(((nevnt)<<4)&0x00f0) | \
((evnt)&0x000f))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/850d35c1761df1daa576e27f6bb2848f34980774
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161017/6532bb05/attachment.html>
More information about the vc
mailing list