diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-09-11 04:09:08 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-09-11 04:09:08 +0000 |
| commit | 2ed0f9191a2ec26a674e997088693e5760d9feb4 (patch) | |
| tree | a32f721ab7d7ca3da5d8a7adfc13f663beff3846 /sys/dev/randomdev | |
| parent | a93a7807b2a9451c6d89d14891d485922c87db3f (diff) | |
Notes
Diffstat (limited to 'sys/dev/randomdev')
| -rw-r--r-- | sys/dev/randomdev/yarrow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/randomdev/yarrow.c b/sys/dev/randomdev/yarrow.c index d882480f8a836..46c1a2cff30a3 100644 --- a/sys/dev/randomdev/yarrow.c +++ b/sys/dev/randomdev/yarrow.c @@ -43,6 +43,7 @@ #include <sys/random.h> #include <sys/time.h> #include <sys/types.h> +#include <sys/unistd.h> #include <machine/mutex.h> #include <crypto/blowfish/blowfish.h> @@ -130,7 +131,7 @@ random_kthread(void *status) #ifdef DEBUG1 queuecount = 0; #endif - TAILQ_FOREACH(event, &harvestqueue, harvest) { + while (!TAILQ_EMPTY(&harvestqueue)) { #ifdef DEBUG1 queuecount++; #endif @@ -227,7 +228,7 @@ random_init(void) /* Start the hash/reseed thread */ error = kthread_create(random_kthread, &random_kthread_status, - &random_kthread_proc, 0, "random"); + &random_kthread_proc, RFHIGHPID, "random"); if (error != 0) return error; |
