diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-23 21:08:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-23 21:08:55 +0000 |
commit | 47d17df4f705dfdc50df01b80f133138aa8ccc1c (patch) | |
tree | f952872e87aaeb4111c48244219b503495fc7489 /sys/kern/subr_evcount.c | |
parent | abb7d2bdf90d13aded253d22185170fd7d781383 (diff) |
change KERN_INTRCNT_CNT to return a quad; ok tedu
Diffstat (limited to 'sys/kern/subr_evcount.c')
-rw-r--r-- | sys/kern/subr_evcount.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_evcount.c b/sys/kern/subr_evcount.c index 856b310114e..0a91c20ac3b 100644 --- a/sys/kern/subr_evcount.c +++ b/sys/kern/subr_evcount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_evcount.c,v 1.2 2004/06/28 01:59:57 deraadt Exp $ */ +/* $OpenBSD: subr_evcount.c,v 1.3 2004/09/23 21:08:54 deraadt Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> * Copyright (c) 2004 Aaron Campbell <aaron@openbsd.org> @@ -133,11 +133,10 @@ evcount_sysctl(name, namelen, oldp, oldlenp, newp, newlen) case KERN_INTRCNT_CNT: if (ec == NULL) return (ENOENT); - /* XXX - bogus cast to int, but we can't do better. */ s = splhigh(); count = ec->ec_count; splx(s); - error = sysctl_rdint(oldp, oldlenp, NULL, (int)count); + error = sysctl_rdquad(oldp, oldlenp, NULL, count); break; case KERN_INTRCNT_NAME: if (ec == NULL) |