diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-27 19:49:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:22 -0500 |
commit | 5e2f9cd8e223368d38d49cf60f199bbd818b8732 (patch) | |
tree | 43263022c04d69104bf400dae79f0e00f18c33b7 /source4/param/share_classic.c | |
parent | 3bf358c4d1016c4c927cc31ab4dcd44130a07967 (diff) | |
download | samba-5e2f9cd8e223368d38d49cf60f199bbd818b8732.tar.gz samba-5e2f9cd8e223368d38d49cf60f199bbd818b8732.tar.bz2 samba-5e2f9cd8e223368d38d49cf60f199bbd818b8732.zip |
r25379: Use loadparm context parameter in a lot more places.
(This used to be commit 091961b13be665061c7e88ab4e2808c015bc403e)
Diffstat (limited to 'source4/param/share_classic.c')
-rw-r--r-- | source4/param/share_classic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c index df86e2be4f..c9786d06bd 100644 --- a/source4/param/share_classic.c +++ b/source4/param/share_classic.c @@ -268,7 +268,7 @@ static NTSTATUS sclassic_list_all(TALLOC_CTX *mem_ctx, int num_services; const char **n; - num_services = lp_numservices(); + num_services = lp_numservices(global_loadparm); n = talloc_array(mem_ctx, const char *, num_services); if (!n) { @@ -277,7 +277,7 @@ static NTSTATUS sclassic_list_all(TALLOC_CTX *mem_ctx, } for (i = 0; i < num_services; i++) { - n[i] = talloc_strdup(n, lp_servicename(lp_servicebynum(i))); + n[i] = talloc_strdup(n, lp_servicename(lp_servicebynum(global_loadparm, i))); if (!n[i]) { DEBUG(0,("ERROR: Out of memory!\n")); talloc_free(n); @@ -299,7 +299,7 @@ static NTSTATUS sclassic_get_config(TALLOC_CTX *mem_ctx, struct share_config *s; struct loadparm_service *service; - service = lp_service(name); + service = lp_service(global_loadparm, name); if (service == NULL) { return NT_STATUS_OBJECT_NAME_NOT_FOUND; |