Don't pass sizeof(u_int) to an argument of SYSCLT_PROC that ends up not

being used.
This commit is contained in:
David Malone 2010-08-08 20:34:53 +00:00
parent 40d2ccc36f
commit ee04083c8a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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