diff options
author | 1997-06-22 04:58:03 +0000 | |
---|---|---|
committer | 1997-06-22 04:58:03 +0000 | |
commit | 082fb45b162b15d808cf2fa58e970f35fc4a1e2d (patch) | |
tree | 4a6b10c987b2b91d52118c4487872299c79abc7e /sys/kern/kern_sysctl.c | |
parent | The mac68k ite emulates a vt100, _not_ a vt220. This is the sorta simple (diff) | |
download | wireguard-openbsd-082fb45b162b15d808cf2fa58e970f35fc4a1e2d.tar.xz wireguard-openbsd-082fb45b162b15d808cf2fa58e970f35fc4a1e2d.zip |
wasn't a race after all. properly initialize event_q pointers so the
last one doesn't point off the end.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 92a41ad969c..ccbeeb7f360 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.17 1997/06/21 04:59:44 flipk Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.18 1997/06/22 04:58:03 flipk Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -60,6 +60,7 @@ #include <sys/mount.h> #include <sys/syscallargs.h> +#include <dev/rndvar.h> #ifdef DDB #include <ddb/db_var.h> @@ -297,6 +298,9 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) return (sysctl_int(oldp, oldlenp, newp, newlen, &sominconn)); case KERN_USERMOUNT: return (sysctl_int(oldp, oldlenp, newp, newlen, &usermount)); + case KERN_RND: + return (sysctl_rdstruct(oldp, oldlenp, newp, &rndstats, + sizeof(rndstats))); default: return (EOPNOTSUPP); } |