libsmbconf: remove the bool verbatim parameter from txt backend init function.
authorMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 14:32:05 +0000 (16:32 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 18:04:43 +0000 (20:04 +0200)
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
source3/lib/smbconf/smbconf_txt_simple.c
source3/lib/smbconf/testsuite.c
source3/utils/net_conf.c

index c04be7f9816f3d15f1ee7c2f473ab5e00570f292..e48a0cce976174b77803255a2086fa1f586f17e6 100644 (file)
@@ -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
index 7f70a5f34b45499b15d087617216a5e49e8c7e8e..968860eaa8ff8008907a8492c70cc1db62703b97 100644 (file)
@@ -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);
 }
index af24dff715c03995e43fc059cc5d57ffab060085..6f7ce10d9cfee8fc07a76561bdb2074b3f2d99f4 100644 (file)
@@ -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;
index 7221f3bd6882276775870f09fb9285d8f188fcab..245a91fa3ee5e0eac6493062197f3cf8ae894efc 100644 (file)
@@ -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));