From: Volker Lendecke Date: Mon, 3 Jun 2019 09:16:33 +0000 (+0200) Subject: smbd: Align integer types in reply_lockingX X-Git-Tag: ldb-2.0.5~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5b1897397e30b1875d8fac2016581fe72bb8597;p=thirdparty%2Fsamba.git smbd: Align integer types in reply_lockingX Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- 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);