1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

param: remove duplicate lp_bool function

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Garming Sam 2014-02-21 15:18:33 +13:00 committed by Jeremy Allison
parent 8204345b93
commit 7505ddf134
2 changed files with 2 additions and 22 deletions

View File

@ -383,11 +383,11 @@ static double lp_double(const char *s)
/**
* convenience routine to return boolean parameters.
*/
static bool lp_bool(const char *s)
bool lp_bool(const char *s)
{
bool ret = false;
if (!s) {
if (!s || !*s) {
DEBUG(0,("lp_bool(%s): is called with NULL!\n",s));
return false;
}

View File

@ -1252,26 +1252,6 @@ static struct parmlist_entry *get_parametrics(int snum, const char *type,
#define MISSING_PARAMETER(name) \
DEBUG(0, ("%s(): value is NULL or empty!\n", #name))
/*******************************************************************
convenience routine to return boolean parameters.
********************************************************************/
static bool lp_bool(const char *s)
{
bool ret = false;
if (!s || !*s) {
MISSING_PARAMETER(lp_bool);
return false;
}
if (!set_boolean(s, &ret)) {
DEBUG(0,("lp_bool(%s): value is not boolean!\n",s));
return false;
}
return ret;
}
/*******************************************************************
convenience routine to return enum parameters.
********************************************************************/