summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-12-18 22:50:49 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:51:51 +0100
commit1cd5cc6e6599260b41023e5b83b8d169c3cad246 (patch)
tree457fc5311b10dc7442f3ad7c96e3507245aba727
parent4e6ab64762477c0117aa823fd8e6b1275d63e0d7 (diff)
downloadsamba-1cd5cc6e6599260b41023e5b83b8d169c3cad246.tar.gz
samba-1cd5cc6e6599260b41023e5b83b8d169c3cad246.tar.bz2
samba-1cd5cc6e6599260b41023e5b83b8d169c3cad246.zip
r26528: dsdb: Fix a warning.
(This used to be commit 41a1f59850345c5a2944818a9a00bc6118d05c8a)
-rw-r--r--source4/dsdb/schema/schema_init.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 24ef91777b..f15b03c9b4 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -1085,10 +1085,10 @@ int dsdb_set_global_schema(struct ldb_context *ldb)
* Find the schema object for this ldb
*/
-const struct dsdb_schema *dsdb_get_schema(struct ldb_context *ldb)
+struct dsdb_schema *dsdb_get_schema(struct ldb_context *ldb)
{
const void *p;
- const struct dsdb_schema *schema;
+ struct dsdb_schema *schema;
/* see if we have a cached copy */
p = ldb_get_opaque(ldb, "dsdb_schema");
@@ -1110,8 +1110,7 @@ const struct dsdb_schema *dsdb_get_schema(struct ldb_context *ldb)
void dsdb_make_schema_global(struct ldb_context *ldb)
{
- const void *p;
- const struct dsdb_schema *schema = dsdb_get_schema(ldb);
+ struct dsdb_schema *schema = dsdb_get_schema(ldb);
if (!schema) {
return;
}