Module Name: src
Committed By: christos
Date: Mon Dec 14 00:43:58 UTC 2009
Modified Files:
src/external/bsd/ntp/dist/ntpd: ntp_io.c
Log Message:
fix for long long time_t
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/ntp/dist/ntpd/ntp_io.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/ntpd/ntp_io.c
diff -u src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.1.1.1 src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.2
--- src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.1.1.1 Sun Dec 13 11:56:13 2009
+++ src/external/bsd/ntp/dist/ntpd/ntp_io.c Sun Dec 13 19:43:58 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_io.c,v 1.1.1.1 2009/12/13 16:56:13 kardel Exp $ */
+/* $NetBSD: ntp_io.c,v 1.2 2009/12/14 00:43:58 christos Exp $ */
/*
* ntp_io.c - input/output routines for ntpd. The socket-opening code
@@ -3080,8 +3080,8 @@
l_fp nts;
tvp = (struct timeval *)CMSG_DATA(cmsghdr);
- DPRINTF(4, ("fetch_timestamp: system network time stamp: %ld.%06ld\n",
- tvp->tv_sec, tvp->tv_usec));
+ DPRINTF(4, ("fetch_timestamp: system network time stamp: %lld.%06ld\n",
+ (long long)tvp->tv_sec, tvp->tv_usec));
nts.l_i = tvp->tv_sec + JAN_1970;
dtemp = (tvp->tv_usec
+ (ntp_random() * 2. / FRAC)) / 1e6;