mirror of
https://github.com/samba-team/samba.git
synced 2025-11-30 20:23:49 +03:00
r12743: Remove the ugly way we had to make a second stage init and introduce
a second_stage_init private function for modules that need a second stage init. Simo.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b349d2fbfe
commit
5e8b365fa2
@@ -484,12 +484,10 @@ static const struct ldb_module_ops schema_ops = {
|
||||
.request = schema_request
|
||||
};
|
||||
|
||||
struct ldb_module *schema_module_init(struct ldb_context *ldb, int stage, const char *options[])
|
||||
struct ldb_module *schema_module_init(struct ldb_context *ldb, const char *options[])
|
||||
{
|
||||
struct ldb_module *ctx;
|
||||
|
||||
if (stage != LDB_MODULES_INIT_STAGE_1) return NULL;
|
||||
|
||||
ctx = talloc(ldb, struct ldb_module);
|
||||
if (!ctx) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user