From: Björn Jacke Date: Fri, 27 Mar 2009 09:24:18 +0000 (+0100) Subject: s3: ifdef sendfile code that's only used in other ifdef'ed sendfile code X-Git-Tag: tdb-1.1.5~1060 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d;p=thirdparty%2Fsamba.git s3: ifdef sendfile code that's only used in other ifdef'ed sendfile code This fixes a "defined but not used" compile warning. --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 16eb4a7fd7c..3f9d5c5498f 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).