summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-07 06:17:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-07 06:17:34 +0000
commit3a29a00d1930be1a531f758cf56200501d44cfac (patch)
tree03b46a1d691eeab2e513dba66aaf1d44e93e8ba5 /regress/sys
parent863b2e9e8ac2b7c579d515f97a34123a6ca87a62 (diff)
do not rely on rndvar.h leaking shit into the namespace
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/kqueue/kqueue-random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-random.c b/regress/sys/kern/kqueue/kqueue-random.c
index 681e8c49a0a..6a705c7733e 100644
--- a/regress/sys/kern/kqueue/kqueue-random.c
+++ b/regress/sys/kern/kqueue/kqueue-random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue-random.c,v 1.4 2003/07/31 21:48:08 deraadt Exp $ */
+/* $OpenBSD: kqueue-random.c,v 1.5 2011/01/07 06:17:33 deraadt Exp $ */
/* Written by Michael Shalayeff, 2002, Public Domain */
#include <stdlib.h>
@@ -21,7 +21,7 @@ do_random(void)
int n, fd, kq;
struct timespec ts;
struct kevent ev;
- u_int32_t buf[POOLWORDS];
+ u_int32_t buf[BUFSIZ];
if ((fd = open("/dev/srandom", O_RDONLY)) < 0) {
warn("open: /dev/srandom");