summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-09-12 06:26:06 +0000
committerJeremy Allison <jra@samba.org>2002-09-12 06:26:06 +0000
commit8c5f577c6f40de2f346b4545cbcdfb08e30f629f (patch)
treed8a523043ac26b4d88f119bde6fa67d4f0143e95 /source3/lib
parentfdb8c4dfe1d367deda6d0183d94f44d5d5e14992 (diff)
downloadsamba-8c5f577c6f40de2f346b4545cbcdfb08e30f629f.tar.gz
samba-8c5f577c6f40de2f346b4545cbcdfb08e30f629f.tar.bz2
samba-8c5f577c6f40de2f346b4545cbcdfb08e30f629f.zip
HPUX takes offset, not pointer to offset.
Jeremy. (This used to be commit d7024e8cb94a20cba789deb2c5b70221f6cca4fd)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sendfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c
index 11bf38ebee..23d1154718 100644
--- a/source3/lib/sendfile.c
+++ b/source3/lib/sendfile.c
@@ -115,9 +115,9 @@ ssize_t sys_sendfile(int outfd, int infd, const DATA_BLOB *header, SMB_OFF_T off
do {
#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(SENDFILE64)
- nwritten = sendfile64(outfd, infd, &offset, total, &hdtrl, 0);
+ nwritten = sendfile64(outfd, infd, offset, total, &hdtrl[0], 0);
#else
- nwritten = sendfile(outfd, infd, &offset, total, &hdtrl, 0);
+ nwritten = sendfile(outfd, infd, offset, total, &hdtrl[0], 0);
#endif
} while (nwritten == -1 && errno == EINTR);
if (nwritten == -1)