summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-30 23:45:35 +0100
committerVolker Lendecke <vl@samba.org>2009-01-31 11:09:39 +0100
commitcee0d85e0b2be27d9314206f3fe832fc0c75b0f3 (patch)
treef1f677dbdb36a18ec609cf8654966b9e550ecfbd /source3
parentd94e9c802ceddeff93168337b6fc5533db7f2d33 (diff)
downloadsamba-cee0d85e0b2be27d9314206f3fe832fc0c75b0f3.tar.gz
samba-cee0d85e0b2be27d9314206f3fe832fc0c75b0f3.tar.bz2
samba-cee0d85e0b2be27d9314206f3fe832fc0c75b0f3.zip
make send_file_readbraw static
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h6
-rw-r--r--source3/smbd/reply.c12
2 files changed, 6 insertions, 12 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index d58dcef0b4..9199d6c0d3 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -7275,12 +7275,6 @@ void reply_ctemp(struct smb_request *req);
NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
uint32 dirtype, const char *name_in, bool has_wild);
void reply_unlink(struct smb_request *req);
-void send_file_readbraw(connection_struct *conn,
- struct smb_request *req,
- files_struct *fsp,
- SMB_OFF_T startpos,
- size_t nread,
- ssize_t mincount);
void reply_readbraw(struct smb_request *req);
void reply_lockread(struct smb_request *req);
void reply_read(struct smb_request *req);
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index eeb6692eb5..f2d4ff78a7 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2728,12 +2728,12 @@ static void reply_readbraw_error(void)
Use sendfile in readbraw.
****************************************************************************/
-void send_file_readbraw(connection_struct *conn,
- struct smb_request *req,
- files_struct *fsp,
- SMB_OFF_T startpos,
- size_t nread,
- ssize_t mincount)
+static void send_file_readbraw(connection_struct *conn,
+ struct smb_request *req,
+ files_struct *fsp,
+ SMB_OFF_T startpos,
+ size_t nread,
+ ssize_t mincount)
{
char *outbuf = NULL;
ssize_t ret=0;