summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 01:54:32 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 01:54:32 +0100
commit16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d (patch)
treeda2137e95caa013da750e23758ed68f49f5b1cc5 /source4/dsdb/samdb/ldb_modules/naming_fsmo.c
parent71bc5acead0e16473273eb8741373e865b6d2c44 (diff)
downloadsamba-16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d.tar.gz
samba-16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d.tar.bz2
samba-16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d.zip
Use struct-based rather than function-based initialization for ldb modules everywhere.
(This used to be commit 85c96a325867f7bcdb412ebc53f8a47dbf7cd89b)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/naming_fsmo.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/naming_fsmo.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/naming_fsmo.c b/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
index d6b6a24287..94bef197e9 100644
--- a/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
+++ b/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
@@ -117,12 +117,7 @@ static int naming_fsmo_init(struct ldb_module *module)
return ldb_next_init(module);
}
-static const struct ldb_module_ops naming_fsmo_ops = {
+const struct ldb_module_ops ldb_naming_fsmo_module_ops = {
.name = "naming_fsmo",
.init_context = naming_fsmo_init
};
-
-int naming_fsmo_module_init(void)
-{
- return ldb_register_module(&naming_fsmo_ops);
-}