diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-04 13:46:34 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-04 18:16:22 +0100 |
commit | 0049c9ed1c0585b81eeaddd2770e545409b307ed (patch) | |
tree | c1495626bfae26f8daa7af78685a8ecef6e89447 | |
parent | e34ee26169a893e4219e49803885718261faf82b (diff) | |
download | samba-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.
-rw-r--r-- | source4/auth/sam.c | 7 |
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)) |