summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorbriggs <briggs@openbsd.org>1996-06-09 03:47:29 +0000
committerbriggs <briggs@openbsd.org>1996-06-09 03:47:29 +0000
commit65564316ad4572900f59f8ba6bf1d2fd0e5a2bb7 (patch)
tree042a6f0133ad386b6a5b39695ac8e0e936f476fd /sys/kern/kern_clock.c
parentAdd prototype for hardupdate() ifdef NTP. (diff)
downloadwireguard-openbsd-65564316ad4572900f59f8ba6bf1d2fd0e5a2bb7.tar.xz
wireguard-openbsd-65564316ad4572900f59f8ba6bf1d2fd0e5a2bb7.zip
Declare tickfixcnt only ifndef NTP.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index c80b8f8aad8..1af2428f6d3 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: kern_clock.c,v 1.11 1996/05/03 07:42:39 niklas Exp $ */
-/* $NetBSD: kern_clock.c,v 1.33 1996/04/22 01:38:19 christos Exp $ */
+/* $OpenBSD: kern_clock.c,v 1.12 1996/06/09 03:47:29 briggs Exp $ */
+/* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993
@@ -283,8 +283,9 @@ int ticks;
static int psdiv, pscnt; /* prof => stat divider */
int psratio; /* ratio: prof / stat */
int tickfix, tickfixinterval; /* used if tick not really integral */
+#ifndef NTP
static int tickfixcnt; /* number of ticks since last fix */
-#ifdef NTP
+#else
int fixtick; /* used by NTP for same */
int shifthz;
#endif