diff options
| author | John Polstra <jdp@FreeBSD.org> | 1999-07-18 01:35:26 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1999-07-18 01:35:26 +0000 |
| commit | 7ac9503b86b75ae9dc16313802f263fea74f8099 (patch) | |
| tree | cc4589714104bb12ba06b4cd150e457a9cbac46d /sys/kern/kern_clock.c | |
| parent | bfb1ef60583f719c45ac106c3266ab97ca0f6734 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index a1b7727d3885..23918b1a13db 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.93 1999/04/02 13:57:21 phk Exp $ + * $Id: kern_clock.c,v 1.94 1999/04/25 08:59:59 phk Exp $ */ #include "opt_ntp.h" @@ -550,7 +550,7 @@ microtime(struct timeval *tv) { struct timecounter *tc; - tc = (struct timecounter *)timecounter; + tc = timecounter; tv->tv_sec = tc->tc_offset_sec; tv->tv_usec = tc->tc_offset_micro; tv->tv_usec += ((u_int64_t)tco_delta(tc) * tc->tc_scale_micro) >> 32; @@ -569,7 +569,7 @@ nanotime(struct timespec *ts) u_int64_t delta; struct timecounter *tc; - tc = (struct timecounter *)timecounter; + tc = timecounter; ts->tv_sec = tc->tc_offset_sec; count = tco_delta(tc); delta = tc->tc_offset_nano; @@ -618,7 +618,7 @@ microuptime(struct timeval *tv) { struct timecounter *tc; - tc = (struct timecounter *)timecounter; + tc = timecounter; tv->tv_sec = tc->tc_offset_sec; tv->tv_usec = tc->tc_offset_micro; tv->tv_usec += ((u_int64_t)tco_delta(tc) * tc->tc_scale_micro) >> 32; @@ -635,7 +635,7 @@ nanouptime(struct timespec *ts) u_int64_t delta; struct timecounter *tc; - tc = (struct timecounter *)timecounter; + tc = timecounter; ts->tv_sec = tc->tc_offset_sec; count = tco_delta(tc); delta = tc->tc_offset_nano; |
