r17711: fix compiler warnings
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Aug 2006 18:09:49 +0000 (18:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:29 +0000 (14:16 -0500)
metze
(This used to be commit f3dc51fef53287cc2e2af7ed4a9f3f52a5cd06ed)

source4/lib/ldb/ldb_tdb/ldb_index.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h

index 7b67db33d30c1f9abd76cbb5610cbe55582e9759..c6feeaeb42b96f26706f95089d5fbf5cca69598b 100644 (file)
@@ -180,7 +180,7 @@ static int list_cmp(const char **s1, const char **s2)
   return a list of dn's that might match a simple indexed search or
  */
 static int ltdb_index_dn_simple(struct ldb_module *module, 
-                               struct ldb_parse_tree *tree,
+                               const struct ldb_parse_tree *tree,
                                const struct ldb_message *index_list,
                                struct dn_list *list)
 {
@@ -256,7 +256,7 @@ static int list_union(struct ldb_context *, struct dn_list *, const struct dn_li
   the special objectclass attribute
  */
 static int ltdb_index_dn_objectclass(struct ldb_module *module, 
-                                    struct ldb_parse_tree *tree,
+                                    const struct ldb_parse_tree *tree,
                                     const struct ldb_message *index_list,
                                     struct dn_list *list)
 {
@@ -316,7 +316,7 @@ static int ltdb_index_dn_objectclass(struct ldb_module *module,
   return a list of dn's that might match a leaf indexed search
  */
 static int ltdb_index_dn_leaf(struct ldb_module *module, 
-                             struct ldb_parse_tree *tree,
+                             const struct ldb_parse_tree *tree,
                              const struct ldb_message *index_list,
                              struct dn_list *list)
 {
@@ -430,7 +430,7 @@ static int list_union(struct ldb_context *ldb,
 }
 
 static int ltdb_index_dn(struct ldb_module *module, 
-                        struct ldb_parse_tree *tree,
+                        const struct ldb_parse_tree *tree,
                         const struct ldb_message *index_list,
                         struct dn_list *list);
 
@@ -439,7 +439,7 @@ static int ltdb_index_dn(struct ldb_module *module,
   OR two index results
  */
 static int ltdb_index_dn_or(struct ldb_module *module, 
-                           struct ldb_parse_tree *tree,
+                           const struct ldb_parse_tree *tree,
                            const struct ldb_message *index_list,
                            struct dn_list *list)
 {
@@ -504,7 +504,7 @@ static int ltdb_index_dn_or(struct ldb_module *module,
   NOT an index results
  */
 static int ltdb_index_dn_not(struct ldb_module *module, 
-                            struct ldb_parse_tree *tree,
+                            const struct ldb_parse_tree *tree,
                             const struct ldb_message *index_list,
                             struct dn_list *list)
 {
@@ -523,7 +523,7 @@ static int ltdb_index_dn_not(struct ldb_module *module,
   AND two index results
  */
 static int ltdb_index_dn_and(struct ldb_module *module, 
-                            struct ldb_parse_tree *tree,
+                            const struct ldb_parse_tree *tree,
                             const struct ldb_message *index_list,
                             struct dn_list *list)
 {
@@ -586,7 +586,7 @@ static int ltdb_index_dn_and(struct ldb_module *module,
   -1 if an error. return 0 for no matches, or 1 for matches
  */
 static int ltdb_index_dn(struct ldb_module *module, 
-                        struct ldb_parse_tree *tree,
+                        const struct ldb_parse_tree *tree,
                         const struct ldb_message *index_list,
                         struct dn_list *list)
 {
index 97b03a9410032d89426615110dd95f22fa76d9d0..5a19dd96fc9e042b1f7d4b45f9ca55d152f2ac65 100644 (file)
@@ -255,7 +255,6 @@ done:
 
 static int ltdb_add_internal(struct ldb_module *module, const struct ldb_message *msg)
 {
-       char *err;
        int ret;
        
        ret = ltdb_check_special_dn(module, msg);
index 7c6c5dfdb01cc81a1f82da6b2e230a7f1b88017f..fb28d00847d83f0bfac6e0bbc83702411553bea0 100644 (file)
@@ -37,7 +37,7 @@ struct ltdb_context {
        struct ldb_module *module;
 
        /* search stuff */
-       struct ldb_parse_tree *tree;
+       const struct ldb_parse_tree *tree;
        const struct ldb_dn *base;
        enum ldb_scope scope;
        const char * const *attrs;