[PATCH 18/37] param: rename do_section in s3 to lp_do_section to avoid conflicts
abartlet at samba.org
abartlet at samba.org
Fri Jun 20 05:47:40 MDT 2014
From: Garming Sam <garming at catalyst.net.nz>
Change-Id: I9bb090b3b501a1e958eec17988901baed16c58cb
Signed-off-by: Garming Sam <garming at catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet at samba.org>
---
source3/param/loadparm.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index ef02791..8ce3eed 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1161,7 +1161,7 @@ static int map_parameter_canonical(const char *pszParmName, bool *inverse);
static const char *get_boolean(bool bool_value);
static bool do_parameter(const char *pszParmName, const char *pszParmValue,
void *userdata);
-static bool do_section(const char *pszSectionName, void *userdata);
+static bool lp_do_section(const char *pszSectionName, void *userdata);
static bool hash_a_service(const char *name, int number);
static void free_service_byindex(int iService);
static void show_parameter(int parmIndex);
@@ -2073,7 +2073,7 @@ static bool process_smbconf_service(struct smbconf_service *service)
return false;
}
- ret = do_section(service->name, NULL);
+ ret = lp_do_section(service->name, NULL);
if (ret != true) {
return false;
}
@@ -2404,7 +2404,7 @@ bool lp_include(struct loadparm_context *unused, int snum, const char *pszParmVa
if (file_exist(fname)) {
bool ret;
include_depth++;
- ret = pm_process(fname, do_section, do_parameter, NULL);
+ ret = pm_process(fname, lp_do_section, do_parameter, NULL);
include_depth--;
TALLOC_FREE(fname);
return ret;
@@ -2773,7 +2773,7 @@ static void init_locals(void)
Returns true on success, false on failure.
***************************************************************************/
-static bool do_section(const char *pszSectionName, void *userdata)
+static bool lp_do_section(const char *pszSectionName, void *userdata)
{
bool bRetval;
bool isglobal = ((strwicmp(pszSectionName, GLOBAL_NAME) == 0) ||
@@ -3954,7 +3954,7 @@ static bool lp_load_ex(const char *pszFname,
add_to_file_list(NULL, &file_lists, pszFname, n2);
- bRetval = pm_process(n2, do_section, do_parameter, NULL);
+ bRetval = pm_process(n2, lp_do_section, do_parameter, NULL);
TALLOC_FREE(n2);
/* finish up the last section */
--
1.9.3
More information about the samba-technical
mailing list