From 66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 27 Mar 2009 10:24:18 +0100 Subject: s3: ifdef sendfile code that's only used in other ifdef'ed sendfile code This fixes a "defined but not used" compile warning. --- source3/smbd/reply.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd/reply.c') 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). -- cgit