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
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) {
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();
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;
-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);