From: Garming Sam Date: Fri, 21 Feb 2014 00:13:27 +0000 (+1300) Subject: param: remove unused lp_set_option X-Git-Tag: talloc-2.1.1~109 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=384513873173abab21b87f5c3c457c09ee41c888;p=kai%2Fsamba-autobuild%2F.git param: remove unused lp_set_option Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 4948fc3f38c..9f96364ff49 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1052,7 +1052,6 @@ void *lp_parm_ptr(struct loadparm_service *service, struct parm_struct *parm); void *lp_local_ptr_by_snum(int snum, struct parm_struct *parm); bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue); bool lp_set_cmdline(const char *pszParmName, const char *pszParmValue); -bool lp_set_option(const char *option); bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal); struct parm_struct *lp_get_parameter(const char *param_name); bool lp_snum_ok(int iService); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 467dbb5792d..3f16b57b696 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2979,37 +2979,6 @@ static bool do_parameter(const char *pszParmName, const char *pszParmValue, pszParmName, pszParmValue)); } -/* - set a option from the commandline in 'a=b' format. Use to support --option -*/ -bool lp_set_option(const char *option) -{ - char *p, *s; - bool ret; - - s = talloc_strdup(NULL, option); - if (!s) { - return false; - } - - p = strchr(s, '='); - if (!p) { - talloc_free(s); - return false; - } - - *p = 0; - - /* skip white spaces after the = sign */ - do { - p++; - } while (*p == ' '); - - ret = lp_set_cmdline(s, p); - talloc_free(s); - return ret; -} - /*************************************************************************** Initialize any local variables in the sDefault table, after parsing a [globals] section.