aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/randomdev
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2000-09-12 13:13:22 +0000
committerMark Murray <markm@FreeBSD.org>2000-09-12 13:13:22 +0000
commitd0d519348da5646dd0a77d1551596049d3d1a6a6 (patch)
tree780b1626a9cf8b26f12e93e2f5b5f8e02f8a02d3 /sys/dev/randomdev
parent67b661fd0a9c70f9ae65a44ae5fe1b7576f379a8 (diff)
Notes
Diffstat (limited to 'sys/dev/randomdev')
-rw-r--r--sys/dev/randomdev/randomdev.c2
-rw-r--r--sys/dev/randomdev/yarrow.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/randomdev/randomdev.c b/sys/dev/randomdev/randomdev.c
index aba955ff5bdb..d5730c4bf766 100644
--- a/sys/dev/randomdev/randomdev.c
+++ b/sys/dev/randomdev/randomdev.c
@@ -109,7 +109,7 @@ random_read(dev_t dev, struct uio *uio, int flag)
c = min(uio->uio_resid, PAGE_SIZE);
random_buf = (void *)malloc(c, M_TEMP, M_WAITOK);
while (uio->uio_resid > 0 && error == 0) {
- ret = read_random(uio->uio_procp, random_buf, c);
+ ret = read_random(random_buf, c);
error = uiomove(random_buf, ret, uio);
}
free(random_buf, M_TEMP);
diff --git a/sys/dev/randomdev/yarrow.c b/sys/dev/randomdev/yarrow.c
index df34f659e8e4..76ae515974d2 100644
--- a/sys/dev/randomdev/yarrow.c
+++ b/sys/dev/randomdev/yarrow.c
@@ -369,7 +369,7 @@ reseed(int fastslow)
}
u_int
-read_random(struct proc *proc, void *buf, u_int count)
+read_random(void *buf, u_int count)
{
static u_int64_t genval;
static int cur = 0;