diff options
author | Zach Loafman <zachary.loafman@isilon.com> | 2008-07-03 22:53:42 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-22 15:00:48 +0200 |
commit | 06d0790c0799112b89534a646e78d0cb38b06e20 (patch) | |
tree | 2ad1d24462b3c30bb1513d5982e79323f6305996 /source3/lib/sendfile.c | |
parent | 45bbad9ca03621e67b4fe1db3299da0557fcf812 (diff) | |
download | samba-06d0790c0799112b89534a646e78d0cb38b06e20.tar.gz samba-06d0790c0799112b89534a646e78d0cb38b06e20.tar.bz2 samba-06d0790c0799112b89534a646e78d0cb38b06e20.zip |
Fix various build warnings
This fixes various build warnings on our platform. I'm sure I haven't
caught them all, but it's a start.
(This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
Diffstat (limited to 'source3/lib/sendfile.c')
-rw-r--r-- | source3/lib/sendfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c index 20b2371273..d1b178577c 100644 --- a/source3/lib/sendfile.c +++ b/source3/lib/sendfile.c @@ -383,7 +383,8 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of hdtrl.iov_base = NULL; hdtrl.iov_len = 0; } else { - hdtrl.iov_base += nwritten; + hdtrl.iov_base = + (caddr_t)hdtrl.iov_base + nwritten; hdtrl.iov_len -= nwritten; nwritten = 0; } |