summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 20:14:41 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-03 20:15:25 +0100
commitfd00867e8558cce30459316fddc4a10c95697577 (patch)
tree9963438ab62a4dcb8727922bfa03fbefba4f5643 /source4/dsdb
parent6a1a7ce9ebb331eba7bf94d16bede2d6472da106 (diff)
downloadsamba-fd00867e8558cce30459316fddc4a10c95697577.tar.gz
samba-fd00867e8558cce30459316fddc4a10c95697577.tar.bz2
samba-fd00867e8558cce30459316fddc4a10c95697577.zip
s4:samdb.c - Make it signed-safe
Use an unsigned argument for the numbers of groups and the counter "i" since the function is called only by "auth_generate_session_info" with an unsigned number of groups argument.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index 2232e436d2..51e3f73a7e 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -144,13 +144,13 @@ NTSTATUS security_token_create(TALLOC_CTX *mem_ctx,
struct loadparm_context *lp_ctx,
struct dom_sid *user_sid,
struct dom_sid *group_sid,
- int n_groupSIDs,
+ unsigned int n_groupSIDs,
struct dom_sid **groupSIDs,
bool is_authenticated,
struct security_token **token)
{
struct security_token *ptoken;
- int i;
+ unsigned int i;
NTSTATUS status;
ptoken = security_token_initialise(mem_ctx);