From 82c2448573e9093307af42f7249d6b41fcccfb06 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 6 Nov 2009 20:14:41 +0100 Subject: s4:samdb_privilege.c - Change two counter variables to unsigned Also here in both cases the unsigned counter fits better than the signed one. --- source4/dsdb/samdb/samdb_privilege.c | 5 +++-- 1 file 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 */ -- cgit