summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 16:32:05 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 20:04:43 +0200
commit35d6068f2504cc76728c3187c3e16171112dabca (patch)
tree3df8467b595f947f2ed3f71b584486ac0a3a78e3 /source3
parent611b6bfa3b46fec656d68705fb8e88e31409f46a (diff)
downloadsamba-35d6068f2504cc76728c3187c3e16171112dabca.tar.gz
samba-35d6068f2504cc76728c3187c3e16171112dabca.tar.bz2
samba-35d6068f2504cc76728c3187c3e16171112dabca.zip
libsmbconf: remove the bool verbatim parameter from txt backend init function.
Always be verbatim for now. Backend config options may be added later via some private data pointer. Michael (This used to be commit e8bafcfbf4a7ab1dc1ce4f2acd24b0eb74933256)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbconf/smbconf.h3
-rw-r--r--source3/lib/smbconf/smbconf_txt_simple.c5
-rw-r--r--source3/lib/smbconf/testsuite.c2
-rw-r--r--source3/utils/net_conf.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/source3/lib/smbconf/smbconf.h b/source3/lib/smbconf/smbconf.h
index c04be7f981..e48a0cce97 100644
--- a/source3/lib/smbconf/smbconf.h
+++ b/source3/lib/smbconf/smbconf.h
@@ -36,8 +36,7 @@ WERROR smbconf_init_reg(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx,
WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
struct smbconf_ctx **conf_ctx,
- const char *path,
- bool verbatim);
+ const char *path);
/*
* the smbconf API functions
diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c
index 7f70a5f34b..968860eaa8 100644
--- a/source3/lib/smbconf/smbconf_txt_simple.c
+++ b/source3/lib/smbconf/smbconf_txt_simple.c
@@ -602,8 +602,7 @@ static struct smbconf_ops smbconf_ops_txt = {
*/
WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
struct smbconf_ctx **conf_ctx,
- const char *path,
- bool verbatim)
+ const char *path)
{
WERROR werr;
@@ -612,7 +611,7 @@ WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
return werr;
}
- pd(*conf_ctx)->verbatim = verbatim;
+ pd(*conf_ctx)->verbatim = true;
return smbconf_txt_load_file(*conf_ctx);
}
diff --git a/source3/lib/smbconf/testsuite.c b/source3/lib/smbconf/testsuite.c
index af24dff715..6f7ce10d9c 100644
--- a/source3/lib/smbconf/testsuite.c
+++ b/source3/lib/smbconf/testsuite.c
@@ -183,7 +183,7 @@ static bool torture_smbconf_txt(void)
printf("test: text backend\n");
printf("test: init\n");
- werr = smbconf_init_txt_simple(mem_ctx, &conf_ctx, NULL, true);
+ werr = smbconf_init_txt_simple(mem_ctx, &conf_ctx, NULL);
if (!W_ERROR_IS_OK(werr)) {
printf("failure: init failed: %s\n", dos_errstr(werr));
ret = false;
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 7221f3bd68..245a91fa3e 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -291,7 +291,7 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx,
DEBUG(3,("net_conf_import: reading configuration from file %s.\n",
filename));
- werr = smbconf_init_txt_simple(mem_ctx, &txt_ctx, filename, true);
+ werr = smbconf_init_txt_simple(mem_ctx, &txt_ctx, filename);
if (!W_ERROR_IS_OK(werr)) {
d_printf("error loading file '%s': %s\n", filename,
dos_errstr(werr));