LDB:asq module - change counters to "unsigned" where appropriate
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 8 Mar 2010 17:01:32 +0000 (18:01 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 8 Mar 2010 17:53:24 +0000 (18:53 +0100)
source4/lib/ldb/modules/asq.c

index 491868301c46b945465d88b037b36abbfbd01cea..6d1e88b67b8f1a4d22c4c7a2d723879396dab82c 100644 (file)
@@ -55,8 +55,8 @@ struct asq_context {
        struct ldb_reply *base_res;
 
        struct ldb_request **reqs;
-       int num_reqs;
-       int cur_req;
+       unsigned int num_reqs;
+       unsigned int cur_req;
 
        struct ldb_control **controls;
 };
@@ -85,7 +85,7 @@ static int asq_search_continue(struct asq_context *ac);
 static int asq_search_terminate(struct asq_context *ac)
 {
        struct ldb_asq_control *asq;
-       int i;
+       unsigned int i;
 
        if (ac->controls) {
                for (i = 0; ac->controls[i]; i++) /* count em */ ;
@@ -250,7 +250,8 @@ static int asq_build_multiple_requests(struct asq_context *ac, bool *terminated)
        struct ldb_control *control;
        struct ldb_dn *dn;
        struct ldb_message_element *el;
-       int ret, i;
+       unsigned int i;
+       int ret;
 
        if (ac->base_res == NULL) {
                return LDB_ERR_NO_SUCH_OBJECT;