diff options
author | mike <mike@FreeBSD.org> | 2002-10-11 14:58:34 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-11 14:58:34 +0000 |
commit | 8630abe45fe3751d8cc345f537ad98962a59ef5e (patch) | |
tree | 60ccb9ea10edcf3d8fc8975fb348b756ea207e35 /sys/fs/devfs/devfs_vnops.c | |
parent | b3c0f70717dc721a9076491fe80fef2e28c95424 (diff) | |
download | FreeBSD-src-8630abe45fe3751d8cc345f537ad98962a59ef5e.zip FreeBSD-src-8630abe45fe3751d8cc345f537ad98962a59ef5e.tar.gz |
Change iov_base's type from `char *' to the standard `void *'. All
uses of iov_base which assume its type is `char *' (in order to do
pointer arithmetic) have been updated to cast iov_base to `char *'.
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 5f7775c..8377be5 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -602,8 +602,8 @@ devfs_readdir(ap) MALLOC(cookiebuf, u_long *, ncookies * sizeof(u_long), M_TEMP, M_WAITOK); cookiep = cookiebuf; - dps = (struct dirent *) - (uio->uio_iov->iov_base - (uio->uio_offset - oldoff)); + dps = (struct dirent *)((char *)uio->uio_iov->iov_base - + (uio->uio_offset - oldoff)); dpe = (struct dirent *) uio->uio_iov->iov_base; for( dp = dps; dp < dpe; |