mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Simplify smb_set_posix_lock()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
824a70fe89
commit
2af389de9a
@ -347,10 +347,8 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn,
|
||||
}
|
||||
|
||||
smblctx = (uint64_t)IVAL(pdata, POSIX_LOCK_PID_OFFSET);
|
||||
offset = (((uint64_t) IVAL(pdata,(POSIX_LOCK_START_OFFSET+4))) << 32) |
|
||||
((uint64_t) IVAL(pdata,POSIX_LOCK_START_OFFSET));
|
||||
count = (((uint64_t) IVAL(pdata,(POSIX_LOCK_LEN_OFFSET+4))) << 32) |
|
||||
((uint64_t) IVAL(pdata,POSIX_LOCK_LEN_OFFSET));
|
||||
offset = PULL_LE_U64(pdata, POSIX_LOCK_START_OFFSET);
|
||||
count = PULL_LE_U64(pdata, POSIX_LOCK_LEN_OFFSET);
|
||||
|
||||
DBG_DEBUG("file %s, lock_type = %u, smblctx = %"PRIu64", "
|
||||
"count = %"PRIu64", offset = %"PRIu64"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user