summaryrefslogtreecommitdiff
path: root/source4/nbt_server
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/nbt_server
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/nbt_server')
-rw-r--r--source4/nbt_server/wins/wins_ldb.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/nbt_server/wins/wins_ldb.c b/source4/nbt_server/wins/wins_ldb.c
index 47aa415667..04468556ef 100644
--- a/source4/nbt_server/wins/wins_ldb.c
+++ b/source4/nbt_server/wins/wins_ldb.c
@@ -112,16 +112,9 @@ failed:
return LDB_ERR_OTHER;
}
-static const struct ldb_module_ops wins_ldb_ops = {
+const struct ldb_module_ops ldb_wins_ldb_module_ops = {
.name = "wins_ldb",
.add = wins_ldb_verify,
.modify = wins_ldb_verify,
.init_context = wins_ldb_init
};
-
-
-/* the init function */
-int wins_ldb_module_init(void)
-{
- return ldb_register_module(&wins_ldb_ops);
-}