diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-06 20:14:41 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-07 19:01:15 +0100 |
commit | 5a54b204c3d2b6c9282cdd459a3d1030fde48926 (patch) | |
tree | 64b4f4ac60c78eb7fe348d314392490d9d434fd4 /source4/dsdb/schema/schema_description.c | |
parent | bd5f08f3d10d12a34a9b3f40594d36f0d6d37eb9 (diff) | |
download | samba-5a54b204c3d2b6c9282cdd459a3d1030fde48926.tar.gz |
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_description.c')
-rw-r--r-- | source4/dsdb/schema/schema_description.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_description.c b/source4/dsdb/schema/schema_description.c index 0ff8a72bcd..2014890c94 100644 --- a/source4/dsdb/schema/schema_description.c +++ b/source4/dsdb/schema/schema_description.c @@ -177,7 +177,7 @@ char *schema_attribute_to_extendedInfo(TALLOC_CTX *mem_ctx, const struct dsdb_at #define APPEND_ATTRS(attributes) \ do { \ - int k; \ + unsigned int k; \ for (k=0; attributes && attributes[k]; k++) { \ const char *attr_name = attributes[k]; \ \ @@ -342,7 +342,7 @@ char *schema_class_to_description(TALLOC_CTX *mem_ctx, const struct dsdb_class * char *schema_class_to_dITContentRule(TALLOC_CTX *mem_ctx, const struct dsdb_class *sclass, const struct dsdb_schema *schema) { - int i; + unsigned int i; char *schema_description; const char **aux_class_list = NULL; const char **attrs; |