1
0
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:
Volker Lendecke 2024-11-23 16:38:53 +01:00 committed by Martin Schwenke
parent 824a70fe89
commit 2af389de9a

View File

@ -347,10 +347,8 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn,
} }
smblctx = (uint64_t)IVAL(pdata, POSIX_LOCK_PID_OFFSET); smblctx = (uint64_t)IVAL(pdata, POSIX_LOCK_PID_OFFSET);
offset = (((uint64_t) IVAL(pdata,(POSIX_LOCK_START_OFFSET+4))) << 32) | offset = PULL_LE_U64(pdata, POSIX_LOCK_START_OFFSET);
((uint64_t) IVAL(pdata,POSIX_LOCK_START_OFFSET)); count = PULL_LE_U64(pdata, POSIX_LOCK_LEN_OFFSET);
count = (((uint64_t) IVAL(pdata,(POSIX_LOCK_LEN_OFFSET+4))) << 32) |
((uint64_t) IVAL(pdata,POSIX_LOCK_LEN_OFFSET));
DBG_DEBUG("file %s, lock_type = %u, smblctx = %"PRIu64", " DBG_DEBUG("file %s, lock_type = %u, smblctx = %"PRIu64", "
"count = %"PRIu64", offset = %"PRIu64"\n", "count = %"PRIu64", offset = %"PRIu64"\n",