summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-03-25 08:37:00 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-25 04:37:06 +0100
commitb5616adc8adbcee61bb670378f9c066225d9dcf3 (patch)
tree29cf788ade306c9ec3eb95493a6db71a7936f898 /source3
parent7824111d07ae12b34e03da1e72884d421a9f9f33 (diff)
downloadsamba-b5616adc8adbcee61bb670378f9c066225d9dcf3.tar.gz
samba-b5616adc8adbcee61bb670378f9c066225d9dcf3.tar.bz2
samba-b5616adc8adbcee61bb670378f9c066225d9dcf3.zip
lib/util/charset rename iconv_convenience to iconv_handle
This better reflects what this structure is Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/charcnv.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 0c34317a3b..b334cfae81 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -61,7 +61,7 @@ void lazy_initialize_conv(void)
**/
void gfree_charcnv(void)
{
- TALLOC_FREE(global_iconv_convenience);
+ TALLOC_FREE(global_iconv_handle);
initialized = false;
}
@@ -74,9 +74,9 @@ void gfree_charcnv(void)
**/
void init_iconv(void)
{
- global_iconv_convenience = smb_iconv_convenience_reinit(NULL, lp_dos_charset(),
+ global_iconv_handle = smb_iconv_handle_reinit(NULL, lp_dos_charset(),
lp_unix_charset(), lp_display_charset(),
- true, global_iconv_convenience);
+ true, global_iconv_handle);
}
/**
@@ -102,10 +102,10 @@ static size_t convert_string_internal(charset_t from, charset_t to,
const char* inbuf = (const char*)src;
char* outbuf = (char*)dest;
smb_iconv_t descriptor;
- struct smb_iconv_convenience *ic;
+ struct smb_iconv_handle *ic;
lazy_initialize_conv();
- ic = get_iconv_convenience();
+ ic = get_iconv_handle();
descriptor = get_conv_handle(ic, from, to);
if (srclen == (size_t)-1) {
@@ -372,7 +372,7 @@ bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to,
char *outbuf = NULL, *ob = NULL;
smb_iconv_t descriptor;
void **dest = (void **)dst;
- struct smb_iconv_convenience *ic;
+ struct smb_iconv_handle *ic;
*dest = NULL;
@@ -397,7 +397,7 @@ bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to,
}
lazy_initialize_conv();
- ic = get_iconv_convenience();
+ ic = get_iconv_handle();
descriptor = get_conv_handle(ic, from, to);
if (descriptor == (smb_iconv_t)-1 || descriptor == (smb_iconv_t)0) {