diff options
author | Tim Potter <tpot@samba.org> | 2003-11-02 13:59:37 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-02 13:59:37 +0000 |
commit | 0dd2e07ea555366c71507c6252254269ce2a558f (patch) | |
tree | 34062dd28acc6f8b074e015103b07f68e09c74df /source3/lib | |
parent | 17131bb446e6dac01a71f2001a6304c4ef2cd18c (diff) | |
download | samba-0dd2e07ea555366c71507c6252254269ce2a558f.tar.gz samba-0dd2e07ea555366c71507c6252254269ce2a558f.tar.bz2 samba-0dd2e07ea555366c71507c6252254269ce2a558f.zip |
Cast to fix warning on Solaris sendfile - check buildfarm output
to see if this works! Bug #706.
(This used to be commit 67ab91825db9b81b8b4f35e86a7eede0c7df5621)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c index bcc8cb08ca..4aa76a0c74 100644 --- a/source3/lib/sendfile.c +++ b/source3/lib/sendfile.c @@ -161,7 +161,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of vec[0].sfv_fd = SFV_FD_SELF; vec[0].sfv_flag = 0; - vec[0].sfv_off = header->data; + vec[0].sfv_off = (off_t)header->data; vec[0].sfv_len = hdr_len = header->length; vec[1].sfv_fd = fromfd; |