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

index 4c326bc240bdbbf9de6caf8d3b0cadf3e0148a39..9bea7db31cd68ff6648f000729db655a8d22ca13 100644 (file)
@@ -41,7 +41,7 @@ static int linked_attributes_fix_links(struct ldb_module *module,
                                       struct ldb_message_element *el, struct dsdb_schema *schema,
                                       const struct dsdb_attribute *schema_attr)
 {
-       int i;
+       unsigned int i;
        TALLOC_CTX *tmp_ctx = talloc_new(module);
        struct ldb_context *ldb = ldb_module_get_ctx(module);
        const struct dsdb_attribute *target;
@@ -58,7 +58,8 @@ static int linked_attributes_fix_links(struct ldb_module *module,
 
        for (i=0; i<el->num_values; i++) {
                struct dsdb_dn *dsdb_dn;
-               int ret, j;
+               unsigned int j;
+               int ret;
                struct ldb_result *res;
                struct ldb_message *msg;
                struct ldb_message_element *el2;
@@ -144,7 +145,8 @@ static int linked_attributes_rename(struct ldb_module *module, struct ldb_reques
 {
        struct ldb_result *res;
        struct ldb_message *msg;
-       int ret, i;
+       unsigned int i;
+       int ret;
        struct ldb_context *ldb = ldb_module_get_ctx(module);
        struct dsdb_schema *schema = dsdb_get_schema(ldb);
        /*