summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-11-29 08:38:22 +0000
committerrwatson <rwatson@FreeBSD.org>2007-11-29 08:38:22 +0000
commitdf297799bda528d9bf7deeff06ea54a16f754e86 (patch)
treea62f0c4c64d4535da1b3237c6dfa18c70e5befa7 /sys/kern/kern_clock.c
parentf8b4b9845d4d1c8d6d9480645cca2c21d22928fc (diff)
downloadFreeBSD-src-df297799bda528d9bf7deeff06ea54a16f754e86.zip
FreeBSD-src-df297799bda528d9bf7deeff06ea54a16f754e86.tar.gz
Move use of 'i' in cp_time sysctl under SCTL_MASK32 so that it compiles
without warnings on systems that don't define it.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 54b7b8f..217e2ef 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -122,10 +122,11 @@ sysctl_kern_cp_times(SYSCTL_HANDLER_ARGS)
{
struct pcpu *pcpu;
int error;
- int i, c;
+ int c;
long *cp_time;
#ifdef SCTL_MASK32
unsigned int cp_time32[CPUSTATES];
+ int i;
#endif
if (!req->oldptr) {
OpenPOWER on IntegriCloud