Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use time_t (not long) to save time_second value.
details: https://anonhg.NetBSD.org/src/rev/3bebf68f0373
branches: trunk
changeset: 753596:3bebf68f0373
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Apr 02 23:31:42 2010 +0000
description:
Use time_t (not long) to save time_second value.
diffstat:
sys/kern/kern_ntptime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bef666f625ef -r 3bebf68f0373 sys/kern/kern_ntptime.c
--- a/sys/kern/kern_ntptime.c Fri Apr 02 21:58:46 2010 +0000
+++ b/sys/kern/kern_ntptime.c Fri Apr 02 23:31:42 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ntptime.c,v 1.52 2009/01/11 21:00:11 christos Exp $ */
+/* $NetBSD: kern_ntptime.c,v 1.53 2010/04/02 23:31:42 tsutsui Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/sys/kern/kern_ntptime.c,v 1.59 2005/05/28 14:34:41 rwatson Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.52 2009/01/11 21:00:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.53 2010/04/02 23:31:42 tsutsui Exp $");
#include "opt_ntp.h"
@@ -180,7 +180,7 @@
static long time_precision = 1; /* clock precision (ns) */
static long time_maxerror = MAXPHASE / 1000; /* maximum error (us) */
static long time_esterror = MAXPHASE / 1000; /* estimated error (us) */
-static long time_reftime; /* time at last adjustment (s) */
+static time_t time_reftime; /* time at last adjustment (s) */
static l_fp time_offset; /* time offset (ns) */
static l_fp time_freq; /* frequency offset (ns/s) */
#endif /* NTP */
Home |
Main Index |
Thread Index |
Old Index