ldb: Fix a const warning
authorVolker Lendecke <vl@samba.org>
Fri, 16 Aug 2013 12:56:04 +0000 (12:56 +0000)
committerVolker Lendecke <vl@samba.org>
Sun, 18 Aug 2013 08:26:27 +0000 (10:26 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Aug 18 10:26:27 CEST 2013 on sn-devel-104

lib/ldb/ldb_map/ldb_map.c
lib/ldb/ldb_map/ldb_map_private.h

index d35e5c604fc3269b51ad789e99e1a07873f31590..d95f050b30cd156bfd597461a06d53732d8225d9 100644 (file)
@@ -869,9 +869,9 @@ static int map_objectclass_convert_operator(struct ldb_module *module, void *mem
  * ============================== */
 
 /* Build a request to search a record by its DN. */
-struct ldb_request *map_search_base_req(struct map_context *ac, struct ldb_dn *dn, const char * const *attrs, const struct ldb_parse_tree *tree, void *context, ldb_map_callback_t callback)
+struct ldb_request *map_search_base_req(struct map_context *ac, struct ldb_dn *dn, const char * const *attrs, struct ldb_parse_tree *tree, void *context, ldb_map_callback_t callback)
 {
-       const struct ldb_parse_tree *search_tree;
+       struct ldb_parse_tree *search_tree;
        struct ldb_context *ldb;
        struct ldb_request *req;
        int ret;
index 7faaa9970885ac888dfe1c21c411c7135ffdc496..6e4a9dded583cb6ec5a912b72877deda680e0d8e 100644 (file)
@@ -75,7 +75,7 @@ struct ldb_dn *ldb_dn_map_rebase_remote(struct ldb_module *module, void *mem_ctx
 struct ldb_request *map_search_base_req(struct map_context *ac,
                                        struct ldb_dn *dn,
                                        const char * const *attrs,
-                                       const struct ldb_parse_tree *tree,
+                                       struct ldb_parse_tree *tree,
                                        void *context,
                                        ldb_map_callback_t callback);
 struct ldb_request *map_build_fixup_req(struct map_context *ac,