summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ildap
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-30 19:09:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:45 -0500
commita6c4541fdf19f0a5505d23142dbb1fa6af855c6c (patch)
tree1bdf67f8a718ecf1c43be07597915b2a9237aa79 /source4/lib/ldb/ldb_ildap
parentb7ab5074fae690b153f86a6cd89b17d0cd75862d (diff)
downloadsamba-a6c4541fdf19f0a5505d23142dbb1fa6af855c6c.tar.gz
samba-a6c4541fdf19f0a5505d23142dbb1fa6af855c6c.tar.bz2
samba-a6c4541fdf19f0a5505d23142dbb1fa6af855c6c.zip
r15963: fix warnings
metze (This used to be commit 11b49a440567eb3fa3391c15f5486c63141f1b97)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 1772a091a3..8929428494 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -271,7 +271,7 @@ static void ildb_callback(struct ldap_request *req)
ares->message = ldb_msg_new(ares);
if (!ares->message) {
- handle->status = LDB_ERR_OPERATIONS_ERROR;;
+ handle->status = LDB_ERR_OPERATIONS_ERROR;
return;
}
@@ -437,7 +437,7 @@ static int ildb_search(struct ldb_module *module, struct ldb_request *req)
msg->r.SearchRequest.timelimit = 0;
msg->r.SearchRequest.sizelimit = 0;
msg->r.SearchRequest.attributesonly = 0;
- msg->r.SearchRequest.tree = req->op.search.tree;
+ msg->r.SearchRequest.tree = discard_const(req->op.search.tree);
for (n = 0; req->op.search.attrs && req->op.search.attrs[n]; n++) /* noop */ ;
msg->r.SearchRequest.num_attributes = n;