From: Volker Lendecke Date: Wed, 6 Oct 2021 07:20:44 +0000 (+0200) Subject: libcli: Align integer types X-Git-Tag: ldb-2.5.0~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34c08da059dc22021cdfe39223cc263d35e6d209;p=thirdparty%2Fsamba.git libcli: Align integer types Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index c989dedf74b..7910001c60d 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -175,7 +175,7 @@ static const struct { */ uint64_t sec_privilege_mask(enum sec_privilege privilege) { - int i; + size_t i; for (i=0;i= 0 && idx= 0 && (unsigned)idx= 0 && idx= 0 && (unsigned)idxprivilege_mask)); if (token->privilege_mask) { - int idx = 0; + size_t idx = 0; int i = 0; for (idx = 0; idxprivilege_mask & privs[idx].privilege_mask) { @@ -474,7 +474,7 @@ void security_token_debug_privileges(int dbg_class, int dbg_lev, const struct se (unsigned long) token->rights_mask)); if (token->rights_mask) { - int idx = 0; + size_t idx = 0; int i = 0; for (idx = 0; idxrights_mask & rights[idx].right_mask) {