summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/modules/sort.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-01 14:59:28 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-01 18:55:19 +1100
commitbe8e91d9cadf0886bf5ce4816dff4073d903965d (patch)
treeaafdcf858e1194a995e74338239b06a1ce6232aa /source4/lib/ldb/modules/sort.c
parentb887b69151808455ae19ce2e690f6fe336c44bb9 (diff)
downloadsamba-be8e91d9cadf0886bf5ce4816dff4073d903965d.tar.gz
samba-be8e91d9cadf0886bf5ce4816dff4073d903965d.tar.bz2
samba-be8e91d9cadf0886bf5ce4816dff4073d903965d.zip
s4-ldb: convert the rest of the ldb modules to the new style
Diffstat (limited to 'source4/lib/ldb/modules/sort.c')
-rw-r--r--source4/lib/ldb/modules/sort.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/ldb/modules/sort.c b/source4/lib/ldb/modules/sort.c
index f7c381f163..fd30c90505 100644
--- a/source4/lib/ldb/modules/sort.c
+++ b/source4/lib/ldb/modules/sort.c
@@ -344,8 +344,13 @@ static int server_sort_init(struct ldb_module *module)
return ldb_next_init(module);
}
-const struct ldb_module_ops ldb_server_sort_module_ops = {
+static const struct ldb_module_ops ldb_server_sort_module_ops = {
.name = "server_sort",
.search = server_sort_search,
.init_context = server_sort_init
};
+
+int ldb_server_sort_init(const char *version)
+{
+ return ldb_register_module(&ldb_server_sort_module_ops);
+}