diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-12 14:36:17 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-20 04:31:07 +0200 |
commit | 79e6fea77443099a6ebe4a2e3bbf606cd444341d (patch) | |
tree | a778eee93a592250de2360a2de000f8f5904d378 /source3/lib | |
parent | f28f5db15a4bcf4c838ee6e4c6ef82c6b9dbd938 (diff) | |
download | samba-79e6fea77443099a6ebe4a2e3bbf606cd444341d.tar.gz samba-79e6fea77443099a6ebe4a2e3bbf606cd444341d.tar.bz2 samba-79e6fea77443099a6ebe4a2e3bbf606cd444341d.zip |
lib/util/charset create _handle functions for convert_string() et al
This is now API compatible with the existing code in lib/util/charset
lazy_initialize_conv() is no longer called as init_iconv() is called
when the smb.conf is processed, and get_conv_handle() will auto-init
with defaults if required.
load_case_tables_library() is no longer requried as all binaries and
libraries already load these in their entry points, as otherwise all
the other string functions would fail.
Andrew Bartlett
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/charcnv.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index bde6510314..f6fed8d1ec 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -22,24 +22,12 @@ */ #include "includes.h" -static bool initialized; - -void lazy_initialize_conv(void) -{ - if (!initialized) { - load_case_tables_library(); - init_iconv(); - initialized = true; - } -} - /** * Destroy global objects allocated by init_iconv() **/ void gfree_charcnv(void) { TALLOC_FREE(global_iconv_handle); - initialized = false; } /** |