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