From 572bc64b594d0d30cb64976579a55e74f01800d2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 3 Mar 2012 00:33:15 +0100 Subject: s3: Remove "req_wct_ofs()" This is fixed up in construct_reply_chain --- source3/smbd/process.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source3/smbd/process.c') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index c163212bc0..c3304c7114 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1833,25 +1833,6 @@ void construct_reply_common_req(struct smb_request *req, char *outbuf) construct_reply_common(req, (const char *)req->inbuf, outbuf); } -/* - * How many bytes have we already accumulated up to the current wct field - * offset? - */ - -size_t req_wct_ofs(struct smb_request *req) -{ - size_t buf_size; - - if (req->chain_outbuf == NULL) { - return smb_wct - 4; - } - buf_size = talloc_get_size(req->chain_outbuf); - if ((buf_size % 4) != 0) { - buf_size += (4 - (buf_size % 4)); - } - return buf_size - 4; -} - /** * @brief Find the smb_cmd offset of the last command pushed * @param[in] buf The buffer we're building up -- cgit