summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 01:37:53 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 01:37:53 +0100
commit71bc5acead0e16473273eb8741373e865b6d2c44 (patch)
tree800f83e622ac17bb60e01ce2034593b64c828c1a /source4/lib/ldb/tests
parent15b86081cd2df734479fcaf92a482c7896bef605 (diff)
downloadsamba-71bc5acead0e16473273eb8741373e865b6d2c44.tar.gz
samba-71bc5acead0e16473273eb8741373e865b6d2c44.tar.bz2
samba-71bc5acead0e16473273eb8741373e865b6d2c44.zip
Allow ldb backends without init function, use init function-less ldb modules.
(This used to be commit 141ee91272fb4dafca0149f679e17721b6a3011e)
Diffstat (limited to 'source4/lib/ldb/tests')
-rw-r--r--source4/lib/ldb/tests/sample_module.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/lib/ldb/tests/sample_module.c b/source4/lib/ldb/tests/sample_module.c
index 8ab1d33146..1a9e72c907 100644
--- a/source4/lib/ldb/tests/sample_module.c
+++ b/source4/lib/ldb/tests/sample_module.c
@@ -32,12 +32,7 @@ int sample_add(struct ldb_module *mod, struct ldb_request *req)
return ldb_next_request(mod, req);
}
-static const struct ldb_module_ops sample_ops = {
- .name = "sample_module",
+const struct ldb_module_ops ldb_sample_module_ops = {
+ .name = "sample",
.add = sample_add,
};
-
-int init_module(void)
-{
- return ldb_register_module(&sample_ops);
-}