summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-06-30 21:35:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:44 -0500
commitf26abd78b17a4fc1ee3e05dd8fd89d7ae61aabad (patch)
treeb0cad4cf9829bedbd4bb17ac0bed31b9f6f79c4b
parent4ed5f70eeda59d07e5d10d4cf302359d7a518987 (diff)
downloadsamba-f26abd78b17a4fc1ee3e05dd8fd89d7ae61aabad.tar.gz
samba-f26abd78b17a4fc1ee3e05dd8fd89d7ae61aabad.tar.bz2
samba-f26abd78b17a4fc1ee3e05dd8fd89d7ae61aabad.zip
r23666: Rename lp_parameter_valid -> lp_parameter_is_valid.
Michael (This used to be commit 7f85cff49dfe1ae90e37162d35f1a48baaa9fe79)
-rw-r--r--source3/param/loadparm.c2
-rw-r--r--source3/utils/net_conf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8c6c0f1afe..759c24ca73 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2782,7 +2782,7 @@ BOOL lp_add_printer(const char *pszPrintername, int iDefaultService)
Parametric options (names containing a colon) are considered valid.
***************************************************************************/
-BOOL lp_parameter_valid(const char *pszParmName)
+BOOL lp_parameter_is_valid(const char *pszParmName)
{
return ((map_parameter(pszParmName) != -1) ||
(strchr(pszParmName, ':') != NULL));
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 1c61a25ee9..9888d1f548 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -171,7 +171,7 @@ static WERROR reg_setvalue_internal(struct registry_key *key,
goto done;
}
- if (!lp_parameter_valid(valname)) {
+ if (!lp_parameter_is_valid(valname)) {
d_fprintf(stderr, "Invalid parameter '%s' given.\n", valname);
werr = WERR_INVALID_PARAM;
goto done;