diff options
author | alc <alc@FreeBSD.org> | 2002-05-25 18:39:42 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-05-25 18:39:42 +0000 |
commit | afb615dae09d963425b31a574aa890f275485cc9 (patch) | |
tree | 037c9cd619977fd6546177d4fe006a3af9dad757 /sys/kern/vfs_aio.c | |
parent | a8947d554824edb9526ca1a2cbf9de9c62f74791 (diff) | |
download | FreeBSD-src-afb615dae09d963425b31a574aa890f275485cc9.zip FreeBSD-src-afb615dae09d963425b31a574aa890f275485cc9.tar.gz |
o Remove some unnecessary casting from and add some necessary casting to
aio_suspend() and lio_listio().
Submitted by: bde
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 7489c3a..71df5ce 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1640,7 +1640,7 @@ aio_suspend(struct thread *td, struct aio_suspend_args *uap) cbptr = uap->aiocbp; for (i = 0; i < uap->nent; i++) { - cbp = (struct aiocb *)fuword((caddr_t)(uintptr_t)&cbptr[i]); + cbp = (struct aiocb *)(intptr_t)fuword(&cbptr[i]); if (cbp == 0) continue; ujoblist[njoblist] = cbp; @@ -1995,7 +1995,7 @@ lio_listio(struct thread *td, struct lio_listio_args *uap) nentqueued = 0; cbptr = uap->acb_list; for (i = 0; i < uap->nent; i++) { - iocb = (struct aiocb *)fuword((caddr_t)(uintptr_t)&cbptr[i]); + iocb = (struct aiocb *)(intptr_t)fuword(&cbptr[i]); if (((intptr_t)iocb != -1) && ((intptr_t)iocb != NULL)) { error = _aio_aqueue(td, iocb, lj, 0); if (error == 0) @@ -2029,7 +2029,7 @@ lio_listio(struct thread *td, struct lio_listio_args *uap) * user space. */ iocb = (struct aiocb *) - fuword((caddr_t)(uintptr_t)&cbptr[i]); + (intptr_t)fuword(&cbptr[i]); if (((intptr_t)iocb == -1) || ((intptr_t)iocb == 0)) continue; |