summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-07 19:12:30 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-07 19:12:30 +0100
commit90e236544f60c847e3fc7e3c183f9759850d3575 (patch)
treed7cdd1b9f4f1316f90408e019ed8461d6bb80027 /source4/dsdb/samdb/ldb_modules
parentad7dd1cf71a80f707a01af9874777ba88d79dcd8 (diff)
downloadsamba-90e236544f60c847e3fc7e3c183f9759850d3575.tar.gz
samba-90e236544f60c847e3fc7e3c183f9759850d3575.tar.bz2
samba-90e236544f60c847e3fc7e3c183f9759850d3575.zip
s4:schema_data LDB module - change counter variables to "unsigned" where appropriate
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/schema_data.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_data.c b/source4/dsdb/samdb/ldb_modules/schema_data.c
index d15c675675..20c85e28bd 100644
--- a/source4/dsdb/samdb/ldb_modules/schema_data.c
+++ b/source4/dsdb/samdb/ldb_modules/schema_data.c
@@ -308,7 +308,8 @@ static int generate_possibleInferiors(struct ldb_context *ldb, struct ldb_messag
const struct dsdb_schema *schema)
{
struct ldb_dn *dn = msg->dn;
- int ret, i;
+ unsigned int i;
+ int ret;
const char *first_component_name = ldb_dn_get_component_name(dn, 0);
const struct ldb_val *first_component_val;
const struct dsdb_class *schema_class;
@@ -349,7 +350,8 @@ static int schema_data_search_callback(struct ldb_request *req, struct ldb_reply
struct ldb_context *ldb;
struct schema_data_search_data *ac;
struct schema_data_private_data *mc;
- int i, ret;
+ unsigned int i;
+ int ret;
ac = talloc_get_type(req->context, struct schema_data_search_data);
mc = talloc_get_type(ldb_module_get_private(ac->module), struct schema_data_private_data);
@@ -411,7 +413,8 @@ static int schema_data_search_callback(struct ldb_request *req, struct ldb_reply
static int schema_data_search(struct ldb_module *module, struct ldb_request *req)
{
struct ldb_context *ldb = ldb_module_get_ctx(module);
- int i, ret;
+ unsigned int i;
+ int ret;
struct schema_data_search_data *search_context;
struct ldb_request *down_req;
struct dsdb_schema *schema = dsdb_get_schema(ldb);