diff options
author | jhb <jhb@FreeBSD.org> | 2000-07-05 07:46:41 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-07-05 07:46:41 +0000 |
commit | b6e74b58eba2989cf8de48058f7f988f58920981 (patch) | |
tree | 4955aea60eabb12fc4fdda981824917be0b92db0 /sys/kern/subr_devstat.c | |
parent | 0e7721bc5fe1b5e0f7eec9687641784cb231fe85 (diff) | |
download | FreeBSD-src-b6e74b58eba2989cf8de48058f7f988f58920981.zip FreeBSD-src-b6e74b58eba2989cf8de48058f7f988f58920981.tar.gz |
Support for unsigned integer and long sysctl variables. Update the
SYSCTL_LONG macro to be consistent with other integer sysctl variables
and require an initial value instead of assuming 0. Update several
sysctl variables to use the unsigned types.
PR: 15251
Submitted by: Kelly Yancey <kbyanc@posi.net>
Diffstat (limited to 'sys/kern/subr_devstat.c')
-rw-r--r-- | sys/kern/subr_devstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 77a9e39..0d0942e 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -304,6 +304,6 @@ SYSCTL_PROC(_kern_devstat, OID_AUTO, all, CTLFLAG_RD|CTLTYPE_OPAQUE, SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD, &devstat_num_devs, 0, "Number of devices in the devstat list"); SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD, - &devstat_generation, "Devstat list generation"); + &devstat_generation, 0, "Devstat list generation"); SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD, &devstat_version, 0, "Devstat list version number"); |