s4:schema_data LDB module - change counter variables to "unsigned" where appropriate
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 7 Mar 2010 18:12:30 +0000 (19:12 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 7 Mar 2010 18:12:30 +0000 (19:12 +0100)
source4/dsdb/samdb/ldb_modules/schema_data.c

index d15c6756751dd0ea56a709db2aa0d3a99675f68f..20c85e28bdb2567b99ebaa85a7f99fc9eb3ae6f1 100644 (file)
@@ -308,7 +308,8 @@ static int generate_possibleInferiors(struct ldb_context *ldb, struct ldb_messag
                                      const struct dsdb_schema *schema) 
 {
        struct ldb_dn *dn = msg->dn;
-       int ret, i;
+       unsigned int i;
+       int ret;
        const char *first_component_name = ldb_dn_get_component_name(dn, 0);
        const struct ldb_val *first_component_val;
        const struct dsdb_class *schema_class;
@@ -349,7 +350,8 @@ static int schema_data_search_callback(struct ldb_request *req, struct ldb_reply
        struct ldb_context *ldb;
        struct schema_data_search_data *ac;
        struct schema_data_private_data *mc;
-       int i, ret;
+       unsigned int i;
+       int ret;
 
        ac = talloc_get_type(req->context, struct schema_data_search_data);
        mc = talloc_get_type(ldb_module_get_private(ac->module), struct schema_data_private_data);
@@ -411,7 +413,8 @@ static int schema_data_search_callback(struct ldb_request *req, struct ldb_reply
 static int schema_data_search(struct ldb_module *module, struct ldb_request *req)
 {
        struct ldb_context *ldb = ldb_module_get_ctx(module);
-       int i, ret;
+       unsigned int i;
+       int ret;
        struct schema_data_search_data *search_context;
        struct ldb_request *down_req;
        struct dsdb_schema *schema = dsdb_get_schema(ldb);