diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-02 22:32:11 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:47:15 +0100 |
commit | 5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521 (patch) | |
tree | b4a2034f64477150c047012385c93aa6bce5ae67 /source/ntptr | |
parent | e9039782204389cc827e76da319d5ccf6d33be46 (diff) | |
download | samba-5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521.tar.gz |
r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
Diffstat (limited to 'source/ntptr')
-rw-r--r-- | source/ntptr/ntptr.h | 3 | ||||
-rw-r--r-- | source/ntptr/ntptr_base.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source/ntptr/ntptr.h b/source/ntptr/ntptr.h index 458d90c6164..56cb4176f4d 100644 --- a/source/ntptr/ntptr.h +++ b/source/ntptr/ntptr.h @@ -229,4 +229,7 @@ struct ntptr_critical_sizes { int sizeof_ntptr_context; int sizeof_ntptr_ops; }; + +struct loadparm_context; + #include "ntptr/ntptr_proto.h" diff --git a/source/ntptr/ntptr_base.c b/source/ntptr/ntptr_base.c index 379c4e54134..1a14c3b33ec 100644 --- a/source/ntptr/ntptr_base.c +++ b/source/ntptr/ntptr_base.c @@ -69,10 +69,10 @@ NTSTATUS ntptr_register(const void *_ops) return NT_STATUS_OK; } -NTSTATUS ntptr_init(void) +NTSTATUS ntptr_init(struct loadparm_context *lp_ctx) { init_module_fn static_init[] = STATIC_ntptr_MODULES; - init_module_fn *shared_init = load_samba_modules(NULL, global_loadparm, "ntptr"); + init_module_fn *shared_init = load_samba_modules(NULL, lp_ctx, "ntptr"); run_init_functions(static_init); run_init_functions(shared_init); |