1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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.
This commit is contained in:
Matthias Dieter Wallnöfer 2010-03-04 13:46:34 +01:00
parent e34ee26169
commit 0049c9ed1c

View File

@ -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))