diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 01:54:32 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-20 01:54:32 +0100 |
commit | 16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d (patch) | |
tree | da2137e95caa013da750e23758ed68f49f5b1cc5 /source4/nbt_server/wins/wins_ldb.c | |
parent | 71bc5acead0e16473273eb8741373e865b6d2c44 (diff) | |
download | samba-16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d.tar.gz samba-16109a40c0abd8c30a5eb9bf9ef692bfae9dfc7d.tar.xz 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/wins/wins_ldb.c')
-rw-r--r-- | source4/nbt_server/wins/wins_ldb.c | 9 |
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 47aa4156675..04468556ef3 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); -} |