From 0049c9ed1c0585b81eeaddd2770e545409b307ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 4 Mar 2010 13:46:34 +0100 Subject: [PATCH] s4:sam.c - change variable types to unsigned in "sids_contains_sid" Should also be unsigned - no need for a signed "i" and "num_sids" here. --- source4/auth/sam.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 3ded739f6a0..df252c816e9 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -270,10 +270,11 @@ _PUBLIC_ NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx, } /* This function tests if a SID structure "sids" contains the SID "sid" */ -static bool sids_contains_sid(const struct dom_sid **sids, const int num_sids, - const struct dom_sid *sid) +static bool sids_contains_sid(const struct dom_sid **sids, + const unsigned int num_sids, + const struct dom_sid *sid) { - int i; + unsigned int i; for (i = 0; i < num_sids; i++) { if (dom_sid_equal(sids[i], sid)) -- 2.11.4.GIT