diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-05 14:26:40 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-05 16:39:31 +0200 |
commit | 96fa47f56e7f604ba7ed60abb27f587c597db04e (patch) | |
tree | cd625b39725dbc96c21f4c56abe5680a253834f6 /source3 | |
parent | 056070f395f4c20bac17dac99518e9b84366817e (diff) | |
download | samba-96fa47f56e7f604ba7ed60abb27f587c597db04e.tar.gz samba-96fa47f56e7f604ba7ed60abb27f587c597db04e.tar.bz2 samba-96fa47f56e7f604ba7ed60abb27f587c597db04e.zip |
s3:smb2_write: remove unused in_smbpid
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_write.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index 9b06b87759..c649befa87 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -29,7 +29,6 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct smbd_smb2_request *smb2req, struct files_struct *in_fsp, - uint32_t in_smbpid, DATA_BLOB in_data, uint64_t in_offset, uint32_t in_flags); @@ -40,10 +39,8 @@ static void smbd_smb2_request_write_done(struct tevent_req *subreq); NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) { NTSTATUS status; - const uint8_t *inhdr; const uint8_t *inbody; int i = req->current_idx; - uint32_t in_smbpid; uint16_t in_data_offset; uint32_t in_data_length; DATA_BLOB in_data_buffer; @@ -58,11 +55,8 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) if (!NT_STATUS_IS_OK(status)) { return smbd_smb2_request_error(req, status); } - inhdr = (const uint8_t *)req->in.vector[i+0].iov_base; inbody = (const uint8_t *)req->in.vector[i+1].iov_base; - in_smbpid = IVAL(inhdr, SMB2_HDR_PID); - in_data_offset = SVAL(inbody, 0x02); in_data_length = IVAL(inbody, 0x04); in_offset = BVAL(inbody, 0x08); @@ -101,7 +95,6 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) subreq = smbd_smb2_write_send(req, req->sconn->ev_ctx, req, in_fsp, - in_smbpid, in_data_buffer, in_offset, in_flags); @@ -253,7 +246,6 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct smbd_smb2_request *smb2req, struct files_struct *fsp, - uint32_t in_smbpid, DATA_BLOB in_data, uint64_t in_offset, uint32_t in_flags) |