]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:samdb_privilege.c - Change two counter variables to unsigned
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 6 Nov 2009 19:14:41 +0000 (20:14 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 5 Mar 2010 12:38:00 +0000 (13:38 +0100)
Also here in both cases the unsigned counter fits better than the signed one.

source4/dsdb/samdb/samdb_privilege.c

index 81b9381b22bbccbad8106a2318fea55e33bbd161..ad0312dd723bbc63e82955155104593c009e332d 100644 (file)
@@ -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 */