Move use of 'i' in cp_time sysctl under SCTL_MASK32 so that it compiles

without warnings on systems that don't define it.
This commit is contained in:
Robert Watson 2007-11-29 08:38:22 +00:00
parent 4dd9b0c085
commit ef54068b54

View File

@ -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) {