From 35d6068f2504cc76728c3187c3e16171112dabca Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 16:32:05 +0200 Subject: 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) --- source3/lib/smbconf/smbconf.h | 3 +-- source3/lib/smbconf/smbconf_txt_simple.c | 5 ++--- source3/lib/smbconf/testsuite.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'source3/lib/smbconf') 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; -- cgit