summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-08 18:01:32 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-08 18:51:26 +0100
commit8248069c91922c93bf9020cc1f94b8cf59c43e28 (patch)
tree498d79cb89638a20a9348770a56eef3917d10cf2 /source4/lib/ldb/modules
parent681c88798a1e16da9dc13688c1ed18659127684b (diff)
downloadsamba-8248069c91922c93bf9020cc1f94b8cf59c43e28.tar.gz
samba-8248069c91922c93bf9020cc1f94b8cf59c43e28.tar.bz2
samba-8248069c91922c93bf9020cc1f94b8cf59c43e28.zip
LDB:rdn name module - change counters to "unsigned" where appropriate
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r--source4/lib/ldb/modules/rdn_name.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/modules/rdn_name.c b/source4/lib/ldb/modules/rdn_name.c
index 2a3c6fd1dc..a473f251af 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);