diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-17 19:48:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-17 19:48:19 +0000 |
commit | 9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d (patch) | |
tree | c6dbbe5495a7d3245be2a395383847afb654943d /source3/lib | |
parent | b33681fc0b8ef7b9fa91c154f7c3117afafa349e (diff) | |
download | samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.tar.gz samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.tar.bz2 samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.zip |
Actually use sendfile if selected.
Jeremy.
(This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sendfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c index 8bcb9dbd02..bcace5fee2 100644 --- a/source3/lib/sendfile.c +++ b/source3/lib/sendfile.c @@ -47,7 +47,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of if (header) { hdr_len = header->length; - while (total < hd_len) { + while (total < hdr_len) { ret = sys_send(tofd, header->data + total,hdr_len - total, MSG_MORE); if (ret == -1) return -1; @@ -115,7 +115,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of if (header) { hdr_len = header->length; - while (total < hd_len) { + while (total < hdr_len) { ret = sys_send(tofd, header->data + total,hdr_len - total, MSG_MORE); if (ret == -1) return -1; |