diff options
author | Björn Jacke <bj@sernet.de> | 2009-03-27 10:24:18 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-03-27 13:41:35 +0100 |
commit | 66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d (patch) | |
tree | 5f2fbcf80e5e9cbbe9a420ad96189d93aa90214c /source3 | |
parent | 742496d2522ed4a53ce087adc4813331dbc75320 (diff) | |
download | samba-66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d.tar.gz samba-66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d.tar.bz2 samba-66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d.zip |
s3: ifdef sendfile code that's only used in other ifdef'ed sendfile code
This fixes a "defined but not used" compile warning.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 16eb4a7fd7..3f9d5c5498 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2679,6 +2679,7 @@ static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos, return (ssize_t)nread; } +#if defined(WITH_SENDFILE) /**************************************************************************** Deal with the case of sendfile reading less bytes from the file than requested. Fill with zeros (all we can do). @@ -2735,6 +2736,7 @@ static void sendfile_short_send(files_struct *fsp, SAFE_FREE(buf); } } +#endif /* defined WITH_SENDFILE */ /**************************************************************************** Return a readbraw error (4 bytes of zero). |