From: Jeremy Allison Date: Mon, 13 Jun 2016 16:22:56 +0000 (-0700) Subject: s3: smbd: Make setup_readX_header() externally accessible X-Git-Tag: tdb-1.3.10~806 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ff3171fba931e621581336c975bae146a2ea3a9;p=thirdparty%2Fsamba.git s3: smbd: Make setup_readX_header() externally accessible https://bugzilla.samba.org/show_bug.cgi?id=11845 Signed-off-by: Jeremy Allison Reviewed-by: Alexander Bokovoy --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 36120347fe2..81bdc87b50c 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -932,6 +932,7 @@ ssize_t sendfile_short_send(struct smbXsrv_connection *xconn, size_t smb_maxcnt); void reply_readbraw(struct smb_request *req); void reply_lockread(struct smb_request *req); +int setup_readX_header(char *outbuf, size_t smb_maxcnt); void reply_read(struct smb_request *req); void reply_read_and_X(struct smb_request *req); void error_to_writebrawerr(struct smb_request *req); diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 0328ae9952a..559aab0185f 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3922,7 +3922,7 @@ strict_unlock: Setup readX header. ****************************************************************************/ -static int setup_readX_header(char *outbuf, size_t smb_maxcnt) +int setup_readX_header(char *outbuf, size_t smb_maxcnt) { int outsize;