summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-05 14:26:40 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-05 16:39:31 +0200
commit1a0c40f53748198342089b567183a24f9e5e1639 (patch)
tree37349a6c82d83c3f0e046d2ebdfea19a50ff4ccb /source3/smbd
parent96fa47f56e7f604ba7ed60abb27f587c597db04e (diff)
downloadsamba-1a0c40f53748198342089b567183a24f9e5e1639.tar.gz
samba-1a0c40f53748198342089b567183a24f9e5e1639.tar.bz2
samba-1a0c40f53748198342089b567183a24f9e5e1639.zip
s3:smb2_lock: remove unused in_smbpid
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_lock.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c
index b4d21a3fc2..aacf18965a 100644
--- a/source3/smbd/smb2_lock.c
+++ b/source3/smbd/smb2_lock.c
@@ -47,7 +47,6 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct smbd_smb2_request *smb2req,
struct files_struct *in_fsp,
- uint32_t in_smbpid,
uint16_t in_lock_count,
struct smbd_smb2_lock_element *in_locks);
static NTSTATUS smbd_smb2_lock_recv(struct tevent_req *req);
@@ -55,10 +54,8 @@ static NTSTATUS smbd_smb2_lock_recv(struct tevent_req *req);
static void smbd_smb2_request_lock_done(struct tevent_req *subreq);
NTSTATUS smbd_smb2_request_process_lock(struct smbd_smb2_request *req)
{
- const uint8_t *inhdr;
const uint8_t *inbody;
const int i = req->current_idx;
- uint32_t in_smbpid;
uint16_t in_lock_count;
uint64_t in_file_id_persistent;
uint64_t in_file_id_volatile;
@@ -73,11 +70,8 @@ NTSTATUS smbd_smb2_request_process_lock(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_lock_count = CVAL(inbody, 0x02);
/* 0x04 - 4 bytes reserved */
in_file_id_persistent = BVAL(inbody, 0x08);
@@ -123,7 +117,6 @@ NTSTATUS smbd_smb2_request_process_lock(struct smbd_smb2_request *req)
subreq = smbd_smb2_lock_send(req, req->sconn->ev_ctx,
req, in_fsp,
- in_smbpid,
in_lock_count,
in_locks);
if (subreq == NULL) {
@@ -206,7 +199,6 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct smbd_smb2_request *smb2req,
struct files_struct *fsp,
- uint32_t in_smbpid,
uint16_t in_lock_count,
struct smbd_smb2_lock_element *in_locks)
{