summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-16 20:06:45 +0000
committerphk <phk@FreeBSD.org>2003-01-16 20:06:45 +0000
commit4ed685af084305cf216e5a975ee03c1f70768967 (patch)
tree370d0df9ffece2cee88852e71d6f790b61328560 /sys/kern
parentd24749bcb4e67543035c97dc4f77cf1aa283dfa4 (diff)
downloadFreeBSD-src-4ed685af084305cf216e5a975ee03c1f70768967.zip
FreeBSD-src-4ed685af084305cf216e5a975ee03c1f70768967.tar.gz
Move a local variable to avoid the compiler warning about it being unused.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_tc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index c954bdc..bb20a9e 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -561,7 +561,6 @@ pps_event(struct pps_state *pps, int event)
{
struct bintime bt;
struct timespec ts, *tsp, *osp;
- u_int64_t scale;
u_int tcount, *pcount;
int foff, fhard;
pps_seq_t *pseq;
@@ -627,6 +626,8 @@ pps_event(struct pps_state *pps, int event)
}
#ifdef PPS_SYNC
if (fhard) {
+ u_int64_t scale;
+
/*
* Feed the NTP PLL/FLL.
* The FLL wants to know how many (hardware) nanoseconds
OpenPOWER on IntegriCloud