From d0d519348da5646dd0a77d1551596049d3d1a6a6 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Tue, 12 Sep 2000 13:13:22 +0000 Subject: The "struct proc" argument to read_random was ill-conceived, and a hangover from previous experimentation. Remove it. This will clean up gratuitous needs for forward references and other namespace pollution. Moaned about by: bde Brought to my attention by: bp --- sys/dev/random/randomdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random/randomdev.c') diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index aba955ff5bdb..d5730c4bf766 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/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); -- cgit v1.3