Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd fix for long long time_t
details: https://anonhg.NetBSD.org/src/rev/dacbbab1b3c1
branches: trunk
changeset: 749984:dacbbab1b3c1
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 14 00:43:58 2009 +0000
description:
fix for long long time_t
diffstat:
external/bsd/ntp/dist/ntpd/ntp_io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 4bfb2aada0d8 -r dacbbab1b3c1 external/bsd/ntp/dist/ntpd/ntp_io.c
--- a/external/bsd/ntp/dist/ntpd/ntp_io.c Mon Dec 14 00:43:09 2009 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_io.c Mon Dec 14 00:43:58 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index