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:
parent
4dd9b0c085
commit
ef54068b54
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user