From a41112fcc984c19d5123e4a49a5f5fd4341e811d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 29 Nov 2020 18:25:07 +0100 Subject: [PATCH] libcli: Align a few integer types Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/util/doserr.c | 2 +- libcli/util/errmap_unix.c | 2 +- libcli/util/hresult.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcli/util/doserr.c b/libcli/util/doserr.c index 237854c148d..99fd72225bf 100644 --- a/libcli/util/doserr.c +++ b/libcli/util/doserr.c @@ -125,7 +125,7 @@ const char *win_errstr(WERROR werror) const char *get_friendly_werror_msg(WERROR werror) { - int i = 0; + size_t i = 0; for (i = 0; i < ARRAY_SIZE(dos_err_strs); i++) { if (W_ERROR_V(dos_err_strs[i].werror) == diff --git a/libcli/util/errmap_unix.c b/libcli/util/errmap_unix.c index 8f9f89835ed..9ac680919d8 100644 --- a/libcli/util/errmap_unix.c +++ b/libcli/util/errmap_unix.c @@ -142,7 +142,7 @@ static const struct { *********************************************************************/ NTSTATUS map_nt_error_from_unix_common(int unix_error) { - int i; + size_t i; /* Look through list */ for (i=0;i