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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174072
@ -122,10 +122,11 @@ sysctl_kern_cp_times(SYSCTL_HANDLER_ARGS)
|
|||||||
{
|
{
|
||||||
struct pcpu *pcpu;
|
struct pcpu *pcpu;
|
||||||
int error;
|
int error;
|
||||||
int i, c;
|
int c;
|
||||||
long *cp_time;
|
long *cp_time;
|
||||||
#ifdef SCTL_MASK32
|
#ifdef SCTL_MASK32
|
||||||
unsigned int cp_time32[CPUSTATES];
|
unsigned int cp_time32[CPUSTATES];
|
||||||
|
int i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!req->oldptr) {
|
if (!req->oldptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user