diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-06 20:14:41 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-05 13:38:00 +0100 |
commit | 82c2448573e9093307af42f7249d6b41fcccfb06 (patch) | |
tree | 928562b2bf7fd37113352a7c97682f4cb80eef36 | |
parent | c695ce729b0e92a1033d505df04cd7813cb3b1b7 (diff) | |
download | samba-82c2448573e9093307af42f7249d6b41fcccfb06.tar.gz samba-82c2448573e9093307af42f7249d6b41fcccfb06.tar.bz2 samba-82c2448573e9093307af42f7249d6b41fcccfb06.zip |
s4:samdb_privilege.c - Change two counter variables to unsigned
Also here in both cases the unsigned counter fits better than the signed one.
-rw-r--r-- | source4/dsdb/samdb/samdb_privilege.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/samdb_privilege.c b/source4/dsdb/samdb/samdb_privilege.c index 81b9381b22..ad0312dd72 100644 --- a/source4/dsdb/samdb/samdb_privilege.c +++ b/source4/dsdb/samdb/samdb_privilege.c @@ -47,7 +47,8 @@ static NTSTATUS samdb_privilege_setup_sid(struct ldb_context *pdb, TALLOC_CTX *m const char * const attrs[] = { "privilege", NULL }; struct ldb_message **res = NULL; struct ldb_message_element *el; - int ret, i; + unsigned int i; + int ret; char *sidstr; sidstr = ldap_encode_ndr_dom_sid(mem_ctx, sid); @@ -88,7 +89,7 @@ NTSTATUS samdb_privilege_setup(struct tevent_context *ev_ctx, { struct ldb_context *pdb; TALLOC_CTX *mem_ctx; - int i; + unsigned int i; NTSTATUS status; /* Shortcuts to prevent recursion and avoid lookups */ |