From 8248069c91922c93bf9020cc1f94b8cf59c43e28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Mon, 8 Mar 2010 18:01:32 +0100 Subject: [PATCH] LDB:rdn name module - change counters to "unsigned" where appropriate --- source4/lib/ldb/modules/rdn_name.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/modules/rdn_name.c b/source4/lib/ldb/modules/rdn_name.c index 2a3c6fd1dce..a473f251af6 100644 --- a/source4/lib/ldb/modules/rdn_name.c +++ b/source4/lib/ldb/modules/rdn_name.c @@ -48,7 +48,7 @@ struct rename_context { static struct ldb_message_element *rdn_name_find_attribute(const struct ldb_message *msg, const char *name) { - int i; + unsigned int i; for (i = 0; i < msg->num_elements; i++) { if (ldb_attr_cmp(name, msg->elements[i].name) == 0) { @@ -94,7 +94,8 @@ static int rdn_name_add(struct ldb_module *module, struct ldb_request *req) const struct ldb_schema_attribute *a; const char *rdn_name; struct ldb_val rdn_val; - int i, ret; + unsigned int i; + int ret; ldb = ldb_module_get_ctx(module); -- 2.11.4.GIT