diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 16:32:05 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 20:04:43 +0200 |
commit | 35d6068f2504cc76728c3187c3e16171112dabca (patch) | |
tree | 3df8467b595f947f2ed3f71b584486ac0a3a78e3 /source3/lib/smbconf | |
parent | 611b6bfa3b46fec656d68705fb8e88e31409f46a (diff) | |
download | samba-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/lib/smbconf')
-rw-r--r-- | source3/lib/smbconf/smbconf.h | 3 | ||||
-rw-r--r-- | source3/lib/smbconf/smbconf_txt_simple.c | 5 | ||||
-rw-r--r-- | source3/lib/smbconf/testsuite.c | 2 |
3 files changed, 4 insertions, 6 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; |