From a5b1897397e30b1875d8fac2016581fe72bb8597 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 3 Jun 2019 11:16:33 +0200 Subject: [PATCH] smbd: Align integer types in reply_lockingX Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/smbd/reply.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 8c9d5b2cab6..4780bfb04f1 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -8272,7 +8272,7 @@ void reply_lockingX(struct smb_request *req) uint16_t num_ulocks; uint16_t num_locks; int32_t lock_timeout; - int i; + uint16_t i; const uint8_t *data; bool large_file_format; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; @@ -8400,7 +8400,7 @@ void reply_lockingX(struct smb_request *req) /* Data now points at the beginning of the list of smb_unlkrng structs */ - for(i = 0; i < (int)num_ulocks; i++) { + for (i = 0; i < num_ulocks; i++) { ulocks[i].smblctx = get_lock_pid(data, i, large_file_format); ulocks[i].count = get_lock_count(data, i, large_file_format); ulocks[i].offset = get_lock_offset(data, i, large_file_format); @@ -8442,7 +8442,7 @@ void reply_lockingX(struct smb_request *req) return; } - for(i = 0; i < (int)num_locks; i++) { + for (i = 0; i < num_locks; i++) { locks[i].smblctx = get_lock_pid(data, i, large_file_format); locks[i].count = get_lock_count(data, i, large_file_format); locks[i].offset = get_lock_offset(data, i, large_file_format); -- 2.47.3