From 5a54b204c3d2b6c9282cdd459a3d1030fde48926 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 6 Nov 2009 20:14:41 +0100 Subject: s4:schema - Change also here counters to "unsigned" where needed Counters which are used in the way "for (i = 0; array[i] != NULL; i++)" I modified to "unsigned" since for sure we don't want to have negative array indexes there. --- source4/dsdb/schema/schema_convert_to_ol.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/dsdb/schema/schema_convert_to_ol.c') diff --git a/source4/dsdb/schema/schema_convert_to_ol.c b/source4/dsdb/schema/schema_convert_to_ol.c index f858dc35e9..ff2595cb72 100644 --- a/source4/dsdb/schema/schema_convert_to_ol.c +++ b/source4/dsdb/schema/schema_convert_to_ol.c @@ -62,8 +62,8 @@ static char *print_schema_recursive(char *append_to_string, struct dsdb_schema * .num_values = 1, .values = &objectclass_name_as_ldb_val }; - int j; - int attr_idx; + unsigned int j; + unsigned int attr_idx; if (!mem_ctx) { DEBUG(0, ("Failed to create new talloc context\n")); @@ -183,11 +183,11 @@ char *dsdb_convert_schema_to_openldap(struct ldb_context *ldb, char *target_str, char *line; char *out; const char **attrs_skip = NULL; - int num_skip = 0; + unsigned int num_skip = 0; struct oid_map *oid_map = NULL; - int num_oid_maps = 0; + unsigned int num_oid_maps = 0; struct attr_map *attr_map = NULL; - int num_attr_maps = 0; + unsigned int num_attr_maps = 0; struct dsdb_attribute *attribute; struct dsdb_schema *schema; enum dsdb_schema_convert_target target; @@ -284,7 +284,7 @@ char *dsdb_convert_schema_to_openldap(struct ldb_context *ldb, char *target_str, bool single_value = attribute->isSingleValued; char *schema_entry = NULL; - int j; + unsigned int j; /* We have been asked to skip some attributes/objectClasses */ if (attrs_skip && str_list_check_ci(attrs_skip, name)) { -- cgit