diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:24:19 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:24:19 +0000 |
commit | c9991fa1bfa16b3f272fcecd44922e0d4bba2d50 (patch) | |
tree | a53efeb983fae2ab961e99a6ae33c9a409c3fc31 /source3/auth | |
parent | ad201867072cc509ab758c5c1c40847d7a925c32 (diff) | |
download | samba-c9991fa1bfa16b3f272fcecd44922e0d4bba2d50.tar.gz samba-c9991fa1bfa16b3f272fcecd44922e0d4bba2d50.tar.bz2 samba-c9991fa1bfa16b3f272fcecd44922e0d4bba2d50.zip |
Use size_t for the counter vars, to match the type they are assigned from
(signed/unsigned mixup).
Andrew Bartlett
(This used to be commit f42cf0783fa3aeddc4992021df9ee6f3b1aa58f3)
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index dd3f55539f..744b4668aa 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -475,7 +475,7 @@ BOOL make_user_info_guest(auth_usersupplied_info **user_info) void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token) { fstring sid_str; - int i; + size_t i; if (!token) { DEBUGC(dbg_class, dbg_lev, ("NT user token: (NULL)\n")); @@ -564,7 +564,7 @@ static NTSTATUS create_nt_user_token(const DOM_SID *user_sid, const DOM_SID *gro sid_ndx = 5; /* next available spot */ for (i = 0; i < n_groupSIDs; i++) { - int check_sid_idx; + size_t check_sid_idx; for (check_sid_idx = 1; check_sid_idx < ptoken->num_sids; check_sid_idx++) { if (sid_equal(&ptoken->user_sids[check_sid_idx], &groupSIDs[i])) { @@ -867,7 +867,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, NT_USER_TOKEN *token; DOM_SID *all_group_SIDs; - int i; + size_t i; /* Here is where we should check the list of |