summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_kobj.c
diff options
context:
space:
mode:
authorkbyanc <kbyanc@FreeBSD.org>2002-06-10 22:40:26 +0000
committerkbyanc <kbyanc@FreeBSD.org>2002-06-10 22:40:26 +0000
commit4bf495ef479377ed8986640990f237aa688f5526 (patch)
tree363422e1c226a6717445ae6720682740aaa6cc1e /sys/kern/subr_kobj.c
parent26c5dfb179df196ec83b6d8b11b744b7ee8a6237 (diff)
downloadFreeBSD-src-4bf495ef479377ed8986640990f237aa688f5526.zip
FreeBSD-src-4bf495ef479377ed8986640990f237aa688f5526.tar.gz
Convert hit and miss counters to unsigned values. Surely negative values
for either does not make sense. PR: (one small part of) 19720
Diffstat (limited to 'sys/kern/subr_kobj.c')
-rw-r--r--sys/kern/subr_kobj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c
index 659e97a..b5bfa1f 100644
--- a/sys/kern/subr_kobj.c
+++ b/sys/kern/subr_kobj.c
@@ -47,12 +47,12 @@ static MALLOC_DEFINE(M_KOBJ, "kobj", "Kernel object structures");
#include <sys/sysctl.h>
-int kobj_lookup_hits;
-int kobj_lookup_misses;
+u_int kobj_lookup_hits;
+u_int kobj_lookup_misses;
-SYSCTL_INT(_kern, OID_AUTO, kobj_hits, CTLFLAG_RD,
+SYSCTL_UINT(_kern, OID_AUTO, kobj_hits, CTLFLAG_RD,
&kobj_lookup_hits, 0, "")
-SYSCTL_INT(_kern, OID_AUTO, kobj_misses, CTLFLAG_RD,
+SYSCTL_UINT(_kern, OID_AUTO, kobj_misses, CTLFLAG_RD,
&kobj_lookup_misses, 0, "")
#endif
OpenPOWER on IntegriCloud