summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_fork.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-12 11:45:37 -0700
committerJeremy Allison <jra@samba.org>2009-05-12 11:45:37 -0700
commitad9d64ee1b9e4cd4324b62c2bb2fd2eec9743e30 (patch)
tree0e96079ae72d9e24fcfd10cb54ce71fd002fb206 /source3/modules/vfs_aio_fork.c
parent196084d641bf5ede94373c3681835d28b3ac9ee3 (diff)
downloadsamba-ad9d64ee1b9e4cd4324b62c2bb2fd2eec9743e30.tar.gz
samba-ad9d64ee1b9e4cd4324b62c2bb2fd2eec9743e30.tar.bz2
samba-ad9d64ee1b9e4cd4324b62c2bb2fd2eec9743e30.zip
Clean up assignments to iov_base, ensure it's always cast to void *. This should quieten some warnings with picky compilers on the buildfarm.
Jeremy.
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r--source3/modules/vfs_aio_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index e29ce5e7a8..8568ec3916 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -135,7 +135,7 @@ static ssize_t read_fd(int fd, void *ptr, size_t nbytes, int *recvfd)
msg.msg_name = NULL;
msg.msg_namelen = 0;
- iov[0].iov_base = ptr;
+ iov[0].iov_base = (void *)ptr;
iov[0].iov_len = nbytes;
msg.msg_iov = iov;
msg.msg_iovlen = 1;
@@ -206,7 +206,7 @@ static ssize_t write_fd(int fd, void *ptr, size_t nbytes, int sendfd)
msg.msg_namelen = 0;
ZERO_STRUCT(iov);
- iov[0].iov_base = ptr;
+ iov[0].iov_base = (void *)ptr;
iov[0].iov_len = nbytes;
msg.msg_iov = iov;
msg.msg_iovlen = 1;