]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:registry Renaming get_charset() to smbreg_get_charset()
authorxzhao9 <i@xuzhao.net>
Sun, 3 Jan 2021 18:02:18 +0000 (13:02 -0500)
committerJeremy Allison <jra@samba.org>
Wed, 10 Feb 2021 21:00:28 +0000 (21:00 +0000)
Rename to smbreg_get_charset() function to avoid naming conflict
with MariaDB.

Signed-off-by: xzhao9 <i@xuzhao.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Feb 10 21:00:28 UTC 2021 on sn-devel-184

source3/registry/reg_format.c
source3/registry/reg_parse_internal.c
source3/registry/reg_parse_internal.h

index 36ccb6261949b6fc81af07b4668499ed86bcd75d..b95f87c2a707b270694976152ead48356886683b 100644 (file)
@@ -791,7 +791,7 @@ struct reg_format* reg_format_file(const void* talloc_ctx,
                          opt.enc));
                goto fail;
        }
-       fmt_ctx->encoding = talloc_strdup(fmt_ctx, get_charset(opt.enc));
+       fmt_ctx->encoding = talloc_strdup(fmt_ctx, smbreg_get_charset(opt.enc));
 
        fmt_ctx->file = fopen(filename, "w");
        if (fmt_ctx->file == NULL) {
index 8f0ab92b3156478d50543d4533be8b6948dc0a5d..d68fee6d9fcc2dce1bc77a800512bbba1c6b2622 100644 (file)
@@ -215,7 +215,7 @@ const struct hive_info* hive_info(const char* name)
        return info;
 }
 
-const char* get_charset(const char* c)
+const char *smbreg_get_charset(const char *c)
 {
        if (strcmp(c, "dos") == 0) {
                return lp_dos_charset();
@@ -231,8 +231,8 @@ bool set_iconv(smb_iconv_t* t, const char* to, const char* from)
        smb_iconv_t cd = (smb_iconv_t)-1;
 
        if (to && from) {
-               to   = get_charset(to);
-               from = get_charset(from);
+               to   = smbreg_get_charset(to);
+               from = smbreg_get_charset(from);
                cd   = smb_iconv_open(to, from);
                if (cd == ((smb_iconv_t)-1)) {
                        return false;
index 1440d5549f9c2385afcdc909df5f36baa0636d00..c2e4c8db60f669a94a10e3778c27b1fa9d2ed488 100644 (file)
@@ -73,7 +73,7 @@ bool srprs_hive(const char** ptr, const struct hive_info** result);
 
 
 
-const char* get_charset(const char* c);
+const char *smbreg_get_charset(const char *c);
 
 bool set_iconv(smb_iconv_t* t, const char* to, const char* from);