freebsd-ports/net/chrony/files/patch-util.c
Wen Heping 50f44d5b23 - Update to 3.1
PR:		217573
Submitted by:	yonas@fizk.net(maintainer)
2017-03-06 06:53:38 +00:00

11 lines
310 B
C

--- util.c.orig 2017-01-31 10:22:11 UTC
+++ util.c
@@ -738,7 +738,7 @@ UTI_TimespecToNtp64(struct timespec *src
hi = lo = 0;
} else {
hi = htonl(sec + JAN_1970);
- lo = htonl(NSEC_PER_NTP64 * nsec);
+ lo = htonl((uint32_t)(NSEC_PER_NTP64 * nsec));
/* Add the fuzz */
if (fuzz) {