[ntpsec commit] Supress warning.

Hal Murray murray at ntpsec.org
Thu Oct 22 17:31:15 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    e80119a52fc76f38c6bd562c53bd15d97cf574da
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=e80119a52fc76f38c6bd562c53bd15d97cf574da

Author:    Hal Murray <hmurray at megapathdsl.net>
Date:      Thu Oct 22 10:30:49 2015 -0700

Supress warning.

---

 libntp/intercept.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libntp/intercept.c b/libntp/intercept.c
index ee3ac4f..037bddb 100644
--- a/libntp/intercept.c
+++ b/libntp/intercept.c
@@ -229,7 +229,8 @@ void intercept_get_systime(const char *legend, l_fp *now)
     get_ostime(&ts);
 
     if (mode == capture)
-	printf("event systime %s %ld %ld\n", legend, ts.tv_sec, ts.tv_nsec);
+	printf("event systime %s %ld %ld\n",
+		legend, (long)ts.tv_sec, ts.tv_nsec);
 	
     normalize_time(ts, ntp_random(), now);
 }



More information about the vc mailing list