summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_map/ldb_map_inbound.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 18:35:17 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-08 10:29:25 +0100
commitb33a340e0a2dcf972f0e53d3ff28a17eb42e4582 (patch)
tree88efd0d4566c1952340640d81d1c9ca056de0a15 /source4/lib/ldb/ldb_map/ldb_map_inbound.c
parent7a7cb5e9c25131e6eadc24f2e5a5a020e015731d (diff)
downloadsamba-b33a340e0a2dcf972f0e53d3ff28a17eb42e4582.tar.gz
samba-b33a340e0a2dcf972f0e53d3ff28a17eb42e4582.tar.bz2
samba-b33a340e0a2dcf972f0e53d3ff28a17eb42e4582.zip
LDB:map - make LDB "signed-safe" on counter variables where appropriate
Diffstat (limited to 'source4/lib/ldb/ldb_map/ldb_map_inbound.c')
-rw-r--r--source4/lib/ldb/ldb_map/ldb_map_inbound.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_inbound.c b/source4/lib/ldb/ldb_map/ldb_map_inbound.c
index 5a948cff69..cdc88afbc5 100644
--- a/source4/lib/ldb/ldb_map/ldb_map_inbound.c
+++ b/source4/lib/ldb/ldb_map/ldb_map_inbound.c
@@ -36,7 +36,7 @@
static struct ldb_message_element *ldb_msg_el_map_local(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_message_element *old)
{
struct ldb_message_element *el;
- int i;
+ unsigned int i;
el = talloc_zero(mem_ctx, struct ldb_message_element);
if (el == NULL) {
@@ -141,7 +141,7 @@ static bool ldb_msg_check_remote(struct ldb_module *module, const struct ldb_mes
{
const struct ldb_map_context *data = map_get_context(module);
bool ret;
- int i;
+ unsigned int i;
for (i = 0; i < msg->num_elements; i++) {
ret = map_attr_check_remote(data, msg->elements[i].name);
@@ -159,7 +159,8 @@ static int ldb_msg_partition(struct ldb_module *module, struct ldb_message *loca
{
/* const char * const names[]; */
struct ldb_context *ldb;
- int i, ret;
+ unsigned int i;
+ int ret;
ldb = ldb_module_get_ctx(module);