summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_convert_to_ol.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 20:14:41 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-07 19:01:15 +0100
commit5a54b204c3d2b6c9282cdd459a3d1030fde48926 (patch)
tree64b4f4ac60c78eb7fe348d314392490d9d434fd4 /source4/dsdb/schema/schema_convert_to_ol.c
parentbd5f08f3d10d12a34a9b3f40594d36f0d6d37eb9 (diff)
downloadsamba-5a54b204c3d2b6c9282cdd459a3d1030fde48926.tar.gz
samba-5a54b204c3d2b6c9282cdd459a3d1030fde48926.tar.bz2
samba-5a54b204c3d2b6c9282cdd459a3d1030fde48926.zip
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.
Diffstat (limited to 'source4/dsdb/schema/schema_convert_to_ol.c')
-rw-r--r--source4/dsdb/schema/schema_convert_to_ol.c12
1 files changed, 6 insertions, 6 deletions
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)) {