diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-06 18:35:17 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 10:32:56 +0100 |
commit | 2d03011858ca33ee56b4c36ac6a901850ff69864 (patch) | |
tree | c4d733c6f4d2aadf72e9486f182e7c3db6a8d430 /source4/lib/ldb/ldb_tdb/ldb_cache.c | |
parent | 4a2b78a6f36d4eb2a8763464f33720936921650c (diff) | |
download | samba-2d03011858ca33ee56b4c36ac6a901850ff69864.tar.gz samba-2d03011858ca33ee56b4c36ac6a901850ff69864.tar.bz2 samba-2d03011858ca33ee56b4c36ac6a901850ff69864.zip |
LDB:TDB backend - change counter variables to "unsigned" where appropriate
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_cache.c')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_cache.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c index aa19f75e9c..2f0ba22268 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_cache.c +++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c @@ -60,7 +60,7 @@ static void ltdb_attributes_unload(struct ldb_module *module) void *data = ldb_module_get_private(module); struct ltdb_private *ltdb = talloc_get_type(data, struct ltdb_private); struct ldb_message *msg; - int i; + unsigned int i; ldb = ldb_module_get_ctx(module); @@ -83,10 +83,10 @@ static void ltdb_attributes_unload(struct ldb_module *module) */ static int ltdb_attributes_flags(struct ldb_message_element *el, unsigned *v) { - int i; + unsigned int i; unsigned value = 0; for (i=0;i<el->num_values;i++) { - int j; + unsigned int j; for (j=0;ltdb_valid_attr_flags[j].name;j++) { if (strcmp(ltdb_valid_attr_flags[j].name, (char *)el->values[i].data) == 0) { @@ -112,7 +112,8 @@ static int ltdb_attributes_load(struct ldb_module *module) struct ltdb_private *ltdb = talloc_get_type(data, struct ltdb_private); struct ldb_message *msg = ltdb->cache->attributes; struct ldb_dn *dn; - int i, r; + unsigned int i; + int r; ldb = ldb_module_get_ctx(module); @@ -480,7 +481,7 @@ int ltdb_increase_sequence_number(struct ldb_module *module) int ltdb_check_at_attributes_values(const struct ldb_val *value) { - int i; + unsigned int i; for (i = 0; ltdb_valid_attr_flags[i].name != NULL; i++) { if ((strcmp(ltdb_valid_attr_flags[i].name, (char *)value->data) == 0)) { |