From 6967cf27eb94f9097c302bc2807f430ca4a641f2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 18 Dec 2010 00:43:24 +0100 Subject: ldb: Rename controls_except_specified -> ldb_controls_except_specified. Autobuild-User: Jelmer Vernooij Autobuild-Date: Sat Dec 18 01:33:24 CET 2010 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 4 ++-- source4/lib/ldb/common/ldb_controls.c | 2 +- source4/lib/ldb/include/ldb_module.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 2bdb7af23f..28aef32d07 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -369,7 +369,7 @@ static int replmd_op_callback(struct ldb_request *req, struct ldb_reply *ares) partition_ctrl = ldb_reply_get_control(ares, DSDB_CONTROL_CURRENT_PARTITION_OID); /* Remove the 'partition' control from what we pass up the chain */ - controls = controls_except_specified(ares->controls, ares, partition_ctrl); + controls = ldb_controls_except_specified(ares->controls, ares, partition_ctrl); if (ares->error != LDB_SUCCESS) { return ldb_module_done(ac->req, controls, @@ -438,7 +438,7 @@ static int replmd_op_callback(struct ldb_request *req, struct ldb_reply *ares) * eventually with the ares */ talloc_free(partition_ctrl); return ldb_module_done(ac->req, - controls_except_specified(controls, ares, partition_ctrl), + ldb_controls_except_specified(controls, ares, partition_ctrl), ares->response, LDB_SUCCESS); } } diff --git a/source4/lib/ldb/common/ldb_controls.c b/source4/lib/ldb/common/ldb_controls.c index cee248a7c6..e3b2870e98 100644 --- a/source4/lib/ldb/common/ldb_controls.c +++ b/source4/lib/ldb/common/ldb_controls.c @@ -105,7 +105,7 @@ int ldb_save_controls(struct ldb_control *exclude, struct ldb_request *req, stru /* Returns a list of controls, except the one specified. Included * controls become a child of returned list if they were children of * controls_in */ -struct ldb_control **controls_except_specified(struct ldb_control **controls_in, +struct ldb_control **ldb_controls_except_specified(struct ldb_control **controls_in, TALLOC_CTX *mem_ctx, struct ldb_control *exclude) { diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h index bd3eaac547..35dbd120fa 100644 --- a/source4/lib/ldb/include/ldb_module.h +++ b/source4/lib/ldb/include/ldb_module.h @@ -125,7 +125,7 @@ int ldb_save_controls(struct ldb_control *exclude, struct ldb_request *req, stru /* Returns a list of controls, except the one specified. Included * controls become a child of returned list if they were children of * controls_in */ -struct ldb_control **controls_except_specified(struct ldb_control **controls_in, +struct ldb_control **ldb_controls_except_specified(struct ldb_control **controls_in, TALLOC_CTX *mem_ctx, struct ldb_control *exclude); int ldb_check_critical_controls(struct ldb_control **controls); -- cgit