summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-28 17:47:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:11 -0500
commit762b86ff0deb072871081f2684f63778e36ad3ce (patch)
tree329f0361e1284d16b4312a1de01cb487d1c46f79 /source3/lib/ldb/ldb_ldap
parent15974508e8916e325563202f5fa7fad4f8514340 (diff)
downloadsamba-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_ldap')
-rw-r--r--source3/lib/ldb/ldb_ldap/ldb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/ldb_ldap/ldb_ldap.c b/source3/lib/ldb/ldb_ldap/ldb_ldap.c
index 6dc52b2484..c45fa108f2 100644
--- a/source3/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source3/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -274,7 +274,7 @@ static int lldb_search(struct ldb_module *module, struct ldb_request *req)
expression = ldb_filter_from_tree(
lldb_ac,
- CONST_DISCARD(struct ldb_parse_tree *, req->op.search.tree));
+ discard_const_p(struct ldb_parse_tree, req->op.search.tree));
if (expression == NULL) {
return LDB_ERR_OPERATIONS_ERROR;
}