lib:charset: Make global_iconv_handle private
authorJeremy Allison <jra@samba.org>
Tue, 11 Apr 2017 23:05:02 +0000 (16:05 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 18 Apr 2017 09:47:17 +0000 (11:47 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/util/charset/charset.h
lib/util/charset/codepoints.c

index 750071491f08175fa81a1a7bb5419fbbf2664a44..ff466c34bb91b0c6b22448994b6300a88b1f945a 100644 (file)
@@ -164,7 +164,6 @@ bool convert_string_error(charset_t from, charset_t to,
                          void *dest, size_t destlen,
                          size_t *converted_size);
 
-extern struct smb_iconv_handle *global_iconv_handle;
 struct smb_iconv_handle *get_iconv_handle(void);
 struct smb_iconv_handle *get_iconv_testing_handle(TALLOC_CTX *mem_ctx, 
                                                  const char *dos_charset, 
index 358ae3b1cbfb9971596da64b3782ec3507ed0a1c..3bfb5cc71e894c0cf4ef8c611f12f1cd5a958312 100644 (file)
@@ -16502,7 +16502,7 @@ struct smb_iconv_handle {
        smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];
 };
 
-struct smb_iconv_handle *global_iconv_handle = NULL;
+static struct smb_iconv_handle *global_iconv_handle = NULL;
 
 struct smb_iconv_handle *get_iconv_handle(void)
 {