summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-03-22 15:19:55 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-03-22 20:24:40 +1100
commit7fc94eb9a7034c36943efbe04f4f4cdfb174c50e (patch)
tree828d6217e114b2bdba5b19fbe11e56ec8e09aeb4 /source4
parentfc5a507a86f37aecb6702d8c2c3bdc462e49f9fd (diff)
downloadsamba-7fc94eb9a7034c36943efbe04f4f4cdfb174c50e.tar.gz
samba-7fc94eb9a7034c36943efbe04f4f4cdfb174c50e.tar.bz2
samba-7fc94eb9a7034c36943efbe04f4f4cdfb174c50e.zip
s4:dsdb Add 'const' to some struct dsdb_schema variables
We don't currently require this, but we may move this way in future.
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/extended_dn_out.c2
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
index b0d618ab83..f28ad8e12f 100644
--- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
+++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
@@ -748,7 +748,7 @@ static int extended_dn_out_dereference_init(struct ldb_module *module, const cha
struct dsdb_openldap_dereference_control *dereference_control;
struct dsdb_attribute *cur;
struct ldb_context *ldb = ldb_module_get_ctx(module);
- struct dsdb_schema *schema;
+ const struct dsdb_schema *schema;
ldb_module_set_private(module, p);
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index a7e2a48ff2..91cd825a84 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -668,7 +668,7 @@ static int replmd_add_fix_la(struct ldb_module *module, struct ldb_message_eleme
struct ldb_context *ldb = ldb_module_get_ctx(module);
/* We will take a reference to the schema in replmd_add_backlink */
- struct dsdb_schema *schema = dsdb_get_schema(ldb, NULL);
+ const struct dsdb_schema *schema = dsdb_get_schema(ldb, NULL);
NTTIME now;
unix_to_nt_time(&now, t);
@@ -1537,7 +1537,7 @@ static int replmd_update_la_val(TALLOC_CTX *mem_ctx, struct ldb_val *v, struct d
handle adding a linked attribute
*/
static int replmd_modify_la_add(struct ldb_module *module,
- struct dsdb_schema *schema,
+ const struct dsdb_schema *schema,
struct ldb_message *msg,
struct ldb_message_element *el,
struct ldb_message_element *old_el,
@@ -1656,7 +1656,7 @@ static int replmd_modify_la_add(struct ldb_module *module,
handle deleting all active linked attributes
*/
static int replmd_modify_la_delete(struct ldb_module *module,
- struct dsdb_schema *schema,
+ const struct dsdb_schema *schema,
struct ldb_message *msg,
struct ldb_message_element *el,
struct ldb_message_element *old_el,
@@ -1775,7 +1775,7 @@ static int replmd_modify_la_delete(struct ldb_module *module,
handle replacing a linked attribute
*/
static int replmd_modify_la_replace(struct ldb_module *module,
- struct dsdb_schema *schema,
+ const struct dsdb_schema *schema,
struct ldb_message *msg,
struct ldb_message_element *el,
struct ldb_message_element *old_el,
@@ -1937,7 +1937,7 @@ static int replmd_modify_handle_linked_attribs(struct ldb_module *module,
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct ldb_message *old_msg;
- struct dsdb_schema *schema;
+ const struct dsdb_schema *schema;
struct GUID old_guid;
if (seq_num == 0) {
@@ -2235,7 +2235,7 @@ static int replmd_rename_callback(struct ldb_request *req, struct ldb_reply *are
is deleted
*/
static int replmd_delete_remove_link(struct ldb_module *module,
- struct dsdb_schema *schema,
+ const struct dsdb_schema *schema,
struct ldb_dn *dn,
struct ldb_message_element *el,
const struct dsdb_attribute *sa)
@@ -2322,7 +2322,7 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req)
const struct ldb_val *rdn_value, *new_rdn_value;
struct GUID guid;
struct ldb_context *ldb = ldb_module_get_ctx(module);
- struct dsdb_schema *schema;
+ const struct dsdb_schema *schema;
struct ldb_message *msg, *old_msg;
struct ldb_message_element *el;
TALLOC_CTX *tmp_ctx;
@@ -3510,7 +3510,7 @@ static int replmd_process_linked_attribute(struct ldb_module *module,
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct ldb_message *msg;
TALLOC_CTX *tmp_ctx = talloc_new(la_entry);
- struct dsdb_schema *schema = dsdb_get_schema(ldb, tmp_ctx);
+ const struct dsdb_schema *schema = dsdb_get_schema(ldb, tmp_ctx);
int ret;
const struct dsdb_attribute *attr;
struct dsdb_dn *dsdb_dn;