Nuke caddr_t.

Reminded by:	ru
This commit is contained in:
Dag-Erling Smørgrav 2003-03-03 10:49:37 +00:00
parent 258ed3f85e
commit 6dca5fe95d

View File

@ -48,7 +48,7 @@ struct uio {
};
.Ed
.Ft int
.Fn uiomove "caddr_t buf" "int howmuch" "struct uio *uiop"
.Fn uiomove "void *buf" "int howmuch" "struct uio *uiop"
.Sh DESCRIPTION
The function
.Fn uiomove
@ -137,7 +137,7 @@ fooread(dev_t dev, struct uio *uio, int flag)
while (uio->uio_resid > 0) {
if (data_available > 0) {
amnt = MIN(uio->uio_resid, data_available);
if ((rv = uiomove((caddr_t)buffer, amnt, uio))
if ((rv = uiomove(buffer, amnt, uio))
!= 0)
goto error;
data_available -= amnt;