diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-11-28 17:47:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:11 -0500 |
commit | 762b86ff0deb072871081f2684f63778e36ad3ce (patch) | |
tree | 329f0361e1284d16b4312a1de01cb487d1c46f79 /source3/lib/ldb/ldb_ildap/ldb_ildap.c | |
parent | 15974508e8916e325563202f5fa7fad4f8514340 (diff) | |
download | samba-762b86ff0deb072871081f2684f63778e36ad3ce.tar.gz samba-762b86ff0deb072871081f2684f63778e36ad3ce.tar.bz2 samba-762b86ff0deb072871081f2684f63778e36ad3ce.zip |
r19935: always use discard_const_p() in lib/ldb/
metze
(This used to be commit 4a5da57306ad8cce5522ee72349cb85b447e295c)
Diffstat (limited to 'source3/lib/ldb/ldb_ildap/ldb_ildap.c')
-rw-r--r-- | source3/lib/ldb/ldb_ildap/ldb_ildap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/ldb/ldb_ildap/ldb_ildap.c b/source3/lib/ldb/ldb_ildap/ldb_ildap.c index 51ae031cf9..87f38b5fc7 100644 --- a/source3/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source3/lib/ldb/ldb_ildap/ldb_ildap.c @@ -470,11 +470,12 @@ 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 = discard_const(req->op.search.tree); + msg->r.SearchRequest.tree = discard_const_p(struct ldb_parse_tree, req->op.search.tree); for (n = 0; req->op.search.attrs && req->op.search.attrs[n]; n++) /* noop */ ; msg->r.SearchRequest.num_attributes = n; - msg->r.SearchRequest.attributes = discard_const(req->op.search.attrs); + msg->r.SearchRequest.attributes = discard_const_p(char *, req->op.search.attrs), + msg->controls = req->controls; return ildb_request_send(module, msg, req->context, req->callback, req->timeout, &(req->handle)); |