From 37eb87d2be88e0e47c72287033e9c829e9625d41 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Jan 2020 11:50:57 +0100 Subject: [PATCH] lib: Align integer types Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/errmap_unix.c | 4 ++-- source3/libsmb/errormap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index 9eb30f7b814..5a6dd245023 100644 --- a/source3/lib/errmap_unix.c +++ b/source3/lib/errmap_unix.c @@ -126,7 +126,7 @@ static const struct { NTSTATUS map_nt_error_from_unix(int unix_error) { - int i = 0; + size_t i = 0; if (unix_error == 0) { /* we map this to an error, not success, as this @@ -264,7 +264,7 @@ static const struct { int map_errno_from_nt_status(NTSTATUS status) { - int i; + size_t i; DEBUG(10,("map_errno_from_nt_status: 32 bit codes: code=%08x\n", NT_STATUS_V(status))); diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c index ce3bb952207..ba8bc659bab 100644 --- a/source3/libsmb/errormap.c +++ b/source3/libsmb/errormap.c @@ -283,7 +283,7 @@ convert a dos eclas/ecode to a NT status32 code *****************************************************************************/ NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode) { - int i; + size_t i; if (eclass == 0) return NT_STATUS_OK; for (i=0; i < ARRAY_SIZE(dos_to_ntstatus_map); i++) { if (eclass == dos_to_ntstatus_map[i].dos_class &&