summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_create.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-17 14:12:40 -0800
committerJeremy Allison <jra@samba.org>2012-02-18 06:22:40 +0100
commit21528da9cd12a4f5c3792a482a5d18fe946a6f7a (patch)
tree4b8c37725dd728e00f25a8b4e2e9b52d7ff7fd5a /source3/smbd/smb2_create.c
parente786e8fef9960aadf1e94c70c0fb7ec18c1ed237 (diff)
downloadsamba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.tar.gz
samba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.tar.bz2
samba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.zip
Fix a bunch of "unused variable" warnings.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r--source3/smbd/smb2_create.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index c637adbb61..3e5b81d5c8 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -264,8 +264,6 @@ static void smbd_smb2_request_create_done(struct tevent_req *tsubreq)
{
struct smbd_smb2_request *smb2req = tevent_req_callback_data(tsubreq,
struct smbd_smb2_request);
- int i = smb2req->current_idx;
- uint8_t *outhdr;
DATA_BLOB outbody;
DATA_BLOB outdyn;
uint8_t out_oplock_level = 0;
@@ -337,8 +335,6 @@ static void smbd_smb2_request_create_done(struct tevent_req *tsubreq)
out_context_buffer_offset = SMB2_HDR_BODY + 0x58;
}
- outhdr = (uint8_t *)smb2req->out.vector[i].iov_base;
-
outbody = data_blob_talloc(smb2req->out.vector, NULL, 0x58);
if (outbody.data == NULL) {
error = smbd_smb2_request_error(smb2req, NT_STATUS_NO_MEMORY);