summaryrefslogtreecommitdiffstats
path: root/source4/auth/system_session.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-07 21:20:12 +0100
committerAndrew Bartlett <abartlet@samba.org>2010-02-25 08:17:11 +1100
commite912d507093b7c22130158ef0bf2c0c4ffc78bac (patch)
tree9a09f0a75d4f01e62bc6a9e65e68f5eb4acd969f /source4/auth/system_session.c
parentf10fc7c16e3c71603e34c58fc0329f6d01d89603 (diff)
downloadsamba-e912d507093b7c22130158ef0bf2c0c4ffc78bac.tar.gz
samba-e912d507093b7c22130158ef0bf2c0c4ffc78bac.tar.xz
samba-e912d507093b7c22130158ef0bf2c0c4ffc78bac.zip
s4:auth - make some parts "signed-safe"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth/system_session.c')
-rw-r--r--source4/auth/system_session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c
index 765f53a613..a1b04604a6 100644
--- a/source4/auth/system_session.c
+++ b/source4/auth/system_session.c
@@ -38,13 +38,13 @@
static NTSTATUS create_token(TALLOC_CTX *mem_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;
ptoken = security_token_initialise(mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(ptoken);
@@ -325,12 +325,12 @@ NTSTATUS auth_system_server_info(TALLOC_CTX *mem_ctx, const char *netbios_name,
static NTSTATUS create_admin_token(TALLOC_CTX *mem_ctx,
struct dom_sid *user_sid,
struct dom_sid *group_sid,
- int n_groupSIDs,
+ unsigned int n_groupSIDs,
struct dom_sid **groupSIDs,
struct security_token **token)
{
struct security_token *ptoken;
- int i;
+ unsigned int i;
ptoken = security_token_initialise(mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(ptoken);