summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-02-18 10:24:59 +1300
committerJeremy Allison <jra@samba.org>2014-05-07 19:49:14 +0200
commit4a86b693fd14ec9d156b8285a625b7c6e0e690ef (patch)
treecd8c350b835c3937bbd83867cf2f5ccfa91e46aa /source3
parent29cdb716d0283d1cb67713f4bb6eb08e28dd98d5 (diff)
downloadsamba-4a86b693fd14ec9d156b8285a625b7c6e0e690ef.tar.gz
samba-4a86b693fd14ec9d156b8285a625b7c6e0e690ef.tar.xz
samba-4a86b693fd14ec9d156b8285a625b7c6e0e690ef.zip
param: remove lp_string_is_valid_boolean
This call is never made in the code and should in fact crash if it was ever called with a valid boolean Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-on: https://gerrit.samba.org/106 Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 0a4db861a8..4948fc3f38 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1031,7 +1031,6 @@ bool lp_canonicalize_parameter_with_value(const char *parm_name,
const char **canon_parm,
const char **canon_val);
void show_parameter_list(void);
-bool lp_string_is_valid_boolean(const char *parm_value);
bool lp_invert_boolean(const char *str, const char **inverse_str);
bool lp_canonicalize_boolean(const char *str, const char**canon_str);
bool service_ok(int iService);
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index efaa93b237..fdc4d52eeb 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2041,15 +2041,6 @@ void show_parameter_list(void)
}
/***************************************************************************
- Check if a given string correctly represents a boolean value.
-***************************************************************************/
-
-bool lp_string_is_valid_boolean(const char *parm_value)
-{
- return set_boolean(parm_value, NULL);
-}
-
-/***************************************************************************
Get the standard string representation of a boolean value ("yes" or "no")
***************************************************************************/