Don't pass sizeof(u_int) to an argument of SYSCLT_PROC that ends up not
being used.
This commit is contained in:
parent
40d2ccc36f
commit
ee04083c8a
@ -222,7 +222,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
|
||||
0, sizeof(u_int), sysctl_machdep_tsc_freq, "QU", "");
|
||||
0, 0, sysctl_machdep_tsc_freq, "QU", "");
|
||||
|
||||
static unsigned
|
||||
tsc_get_timecount(struct timecounter *tc)
|
||||
|
@ -250,7 +250,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
|
||||
0, sizeof(u_int), sysctl_machdep_tsc_freq, "QU", "");
|
||||
0, 0, sysctl_machdep_tsc_freq, "QU", "");
|
||||
|
||||
static unsigned
|
||||
tsc_get_timecount(struct timecounter *tc)
|
||||
|
Loading…
Reference in New Issue
Block a user