summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-03-18 23:32:27 +0000
committerjake <jake@FreeBSD.org>2003-03-18 23:32:27 +0000
commitce68d8fa2273a645135a8305c067ea2b9522f000 (patch)
treed38d69392bc679704716895412a11e218437c0be
parent8193465d1cbeec606813aede37af37bded67f6ad (diff)
downloadFreeBSD-src-ce68d8fa2273a645135a8305c067ea2b9522f000.zip
FreeBSD-src-ce68d8fa2273a645135a8305c067ea2b9522f000.tar.gz
long != int. Use SYSCTL_UINT for kern.devstat.generation. Fixes booting
on sparc64.
-rw-r--r--sys/kern/subr_devstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 4356020..671b9cb 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -420,7 +420,7 @@ 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,
+SYSCTL_UINT(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD,
&devstat_generation, 0, "Devstat list generation");
SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD,
&devstat_version, 0, "Devstat list version number");
OpenPOWER on IntegriCloud