summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_index.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-11-30 22:55:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:15 -0500
commitb6c4b63dc59d10e7f93e726282b6f93f64dd7bb8 (patch)
tree9bb93d2b8004931f85d851f28128a92962297066 /source4/lib/ldb/ldb_tdb/ldb_index.c
parent75f58e2d0fc3d2b07659caf34a07a0fb20cc1756 (diff)
downloadsamba-b6c4b63dc59d10e7f93e726282b6f93f64dd7bb8.tar.gz
samba-b6c4b63dc59d10e7f93e726282b6f93f64dd7bb8.tar.bz2
samba-b6c4b63dc59d10e7f93e726282b6f93f64dd7bb8.zip
r4022: fix compiler warnings
metze (This used to be commit 79d0eb2f677f9e985ba476a9680f68537d41be6f)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_index.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index b651aa38c1..df0a436172 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -80,7 +80,7 @@ static char *ldb_dn_key(struct ldb_context *ldb,
see if a attribute value is in the list of indexed attributes
*/
static int ldb_msg_find_idx(const struct ldb_message *msg, const char *attr,
- int *v_idx, const char *key)
+ unsigned int *v_idx, const char *key)
{
unsigned int i, j;
for (i=0;i<msg->num_elements;i++) {
@@ -509,7 +509,8 @@ static int ldb_index_filter(struct ldb_module *module, struct ldb_parse_tree *tr
const struct dn_list *dn_list,
const char * const attrs[], struct ldb_message ***res)
{
- unsigned int count = 0, i;
+ unsigned int i;
+ int count = 0;
for (i=0;i<dn_list->count;i++) {
struct ldb_message msg;