summaryrefslogtreecommitdiff
path: root/source3/lib/sendfile.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-09-18 20:07:56 +0000
committerJeremy Allison <jra@samba.org>2002-09-18 20:07:56 +0000
commit994638f577d2d0df8f5f185fd96d4448dcd9d7e5 (patch)
tree40249f238acb7f0aaa629622002e0f9486157654 /source3/lib/sendfile.c
parentaad3c35ac1197a70c04eccaf7d4fee804a210954 (diff)
downloadsamba-994638f577d2d0df8f5f185fd96d4448dcd9d7e5.tar.gz
samba-994638f577d2d0df8f5f185fd96d4448dcd9d7e5.tar.bz2
samba-994638f577d2d0df8f5f185fd96d4448dcd9d7e5.zip
HPUX sendfile is now detected correctly.
Jeremy. (This used to be commit 91e41ebe97c143f413e2a5614b20f3db4642490f)
Diffstat (limited to 'source3/lib/sendfile.c')
-rw-r--r--source3/lib/sendfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c
index bcace5fee2..df6c1980d0 100644
--- a/source3/lib/sendfile.c
+++ b/source3/lib/sendfile.c
@@ -209,7 +209,8 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of
hdtrl[0].iov_len = 0;
} else {
nwritten = 0;
- hdtrl[0].iov_base += nwritten;
+ /* iov_base is defined as a void *... */
+ hdtrl[0].iov_base = ((char *)hdtrl[0].iov_base) + nwritten;
hdtrl[0].iov_len -= nwritten;
}
}