diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-18 20:07:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-18 20:07:56 +0000 |
commit | 91e41ebe97c143f413e2a5614b20f3db4642490f (patch) | |
tree | 7aae573fdf7505bfc148470b4445d399a6f74dc9 /source/lib | |
parent | aa52351384abace54a89c9fbfa5e4c31a8464c91 (diff) | |
download | samba-91e41ebe97c143f413e2a5614b20f3db4642490f.tar.gz |
HPUX sendfile is now detected correctly.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/sendfile.c | 3 |
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; } } |