summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 13:46:34 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-04 18:16:22 +0100
commit0049c9ed1c0585b81eeaddd2770e545409b307ed (patch)
treec1495626bfae26f8daa7af78685a8ecef6e89447 /source4/auth
parente34ee26169a893e4219e49803885718261faf82b (diff)
downloadsamba-0049c9ed1c0585b81eeaddd2770e545409b307ed.tar.gz
samba-0049c9ed1c0585b81eeaddd2770e545409b307ed.tar.bz2
samba-0049c9ed1c0585b81eeaddd2770e545409b307ed.zip
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.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/sam.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 3ded739f6a..df252c816e 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))