summaryrefslogtreecommitdiff
path: root/source/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
commit91e41ebe97c143f413e2a5614b20f3db4642490f (patch)
tree7aae573fdf7505bfc148470b4445d399a6f74dc9 /source/lib/sendfile.c
parentaa52351384abace54a89c9fbfa5e4c31a8464c91 (diff)
downloadsamba-91e41ebe97c143f413e2a5614b20f3db4642490f.tar.gz
HPUX sendfile is now detected correctly.
Jeremy.
Diffstat (limited to 'source/lib/sendfile.c')
-rw-r--r--source/lib/sendfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/sendfile.c b/source/lib/sendfile.c
index bcace5fee29..df6c1980d06 100644
--- a/source/lib/sendfile.c
+++ b/source/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;
}
}