r23666: Rename lp_parameter_valid -> lp_parameter_is_valid.
authorMichael Adam <obnox@samba.org>
Sat, 30 Jun 2007 21:35:39 +0000 (21:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:44 +0000 (12:23 -0500)
Michael
(This used to be commit 7f85cff49dfe1ae90e37162d35f1a48baaa9fe79)

source3/param/loadparm.c
source3/utils/net_conf.c

index 8c6c0f1afeccf7c29a0da1cbf7804a7e8864bbec..759c24ca7381f165ad2f92c8400333f441822ff6 100644 (file)
@@ -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));
index 1c61a25ee9ce0af434a932dd862e677bff5296f6..9888d1f5486d66e5994fd0a33bbdf249a61a60bf 100644 (file)
@@ -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;