diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-25 16:58:21 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:17 +0200 |
commit | 9d90969a37244c5e2ddb90daf5ac439cb33cdbf0 (patch) | |
tree | 62f64f4ccf43988f715a66d35e7d2e012a27842d /source3/param | |
parent | 66338032c243e4fe49a3b7cd71c74b14d7b2c784 (diff) | |
download | samba-9d90969a37244c5e2ddb90daf5ac439cb33cdbf0.tar.gz samba-9d90969a37244c5e2ddb90daf5ac439cb33cdbf0.tar.xz samba-9d90969a37244c5e2ddb90daf5ac439cb33cdbf0.zip |
param: copy parametric option helper to lib/param
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 459528f2370..2a3a8cba069 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1228,10 +1228,10 @@ static struct parmlist_entry *get_parametrics(int snum, const char *type, if (snum >= iNumServices) return NULL; if (snum < 0) { - return get_parametrics_by_service(NULL, type, option, Globals.param_opt); + return get_parametric_helper(NULL, type, option, Globals.param_opt); } else { - return get_parametrics_by_service(ServicePtrs[snum], - type, option, Globals.param_opt); + return get_parametric_helper(ServicePtrs[snum], + type, option, Globals.param_opt); } } @@ -1295,7 +1295,9 @@ const char *lp_parm_const_string_service(struct loadparm_service *service, const char *type, const char *option, const char *def) { - struct parmlist_entry *data = get_parametrics_by_service(service, type, option, Globals.param_opt); + struct parmlist_entry *data; + + data = get_parametric_helper(service, type, option, Globals.param_opt); if (data == NULL||data->value==NULL) return def; |