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 | 994638f577d2d0df8f5f185fd96d4448dcd9d7e5 (patch) | |
tree | 40249f238acb7f0aaa629622002e0f9486157654 /source3/lib | |
parent | aad3c35ac1197a70c04eccaf7d4fee804a210954 (diff) | |
download | samba-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')
-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 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; } } |