summaryrefslogtreecommitdiff
path: root/source4/param/share.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/share.c')
-rw-r--r--source4/param/share.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/share.c b/source4/param/share.c
index 489049f39f7..6c0269d5fc2 100644
--- a/source4/param/share.c
+++ b/source4/param/share.c
@@ -149,10 +149,10 @@ NTSTATUS share_get_context(TALLOC_CTX *mem_ctx, struct share_context **ctx)
/*
initialise the SHARE subsystem
*/
-NTSTATUS share_init(void)
+NTSTATUS share_init(struct loadparm_context *lp_ctx)
{
init_module_fn static_init[] = STATIC_share_MODULES;
- init_module_fn *shared_init = load_samba_modules(NULL, global_loadparm, "share");
+ init_module_fn *shared_init = load_samba_modules(NULL, lp_ctx, "share");
run_init_functions(static_init);
run_init_functions(shared_init);