[Git][NTPsec/ntpsec][master] Fix a few more warnings (on NetBSD and FreeBSD).

Hal Murray gitlab at mg.gitlab.com
Thu Dec 10 09:06:21 UTC 2015


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
f1b22bc1 by Hal Murray at 2015-12-10T01:05:20Z
Fix a few more warnings (on NetBSD and FreeBSD).

- - - - -


1 changed file:

- ntpd/ntp_intercept.c


Changes:

=====================================
ntpd/ntp_intercept.c
=====================================
--- a/ntpd/ntp_intercept.c
+++ b/ntpd/ntp_intercept.c
@@ -291,7 +291,7 @@ int intercept_adjtime(const struct timeval *ntv, struct timeval *otv)
 /* old-fashioned BSD call for systems with no PLL */
 {
     printf("event adjtime %ld %ld %ld %ld",
-	   ntv->tv_sec, ntv->tv_usec, ntv->tv_sec, ntv->tv_usec);
+	   (long)ntv->tv_sec, (long)ntv->tv_usec, (long)ntv->tv_sec, (long)ntv->tv_usec);
 
     if (mode != replay)
 	return adjtime(ntv, otv);
@@ -338,7 +338,7 @@ int intercept_ntp_adjtime(struct timex *tx)
 int intercept_set_tod(struct timespec *tvs)
 {
     if (mode != none)
-	printf("event set_tod %ld %ld\n", tvs->tv_sec, tvs->tv_nsec);
+	printf("event set_tod %ld %ld\n", (long)tvs->tv_sec, tvs->tv_nsec);
 
     if (mode == replay)
 	return ntp_set_tod(tvs);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f1b22bc1c49b5882ae3237fac43890c9ad6826f1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151210/0f3a3a1e/attachment.html>


More information about the vc mailing list