[CLEANUP] Remove closeCharSetConversion from the

header, there's no need to export it.
Static it.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4330 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Avuton Olrich 2006-07-14 19:27:32 +00:00
parent 7154c510e5
commit 18f59c9c16
2 changed files with 4 additions and 4 deletions

View File

@ -41,6 +41,8 @@ mpd_sint8 char_conv_latin1ToUtf8 = 0;
#define BUFFER_SIZE 1024 #define BUFFER_SIZE 1024
static void closeCharSetConversion();
int setCharSetConversion(char * to, char * from) { int setCharSetConversion(char * to, char * from) {
if(char_conv_to && char_conv_from && if(char_conv_to && char_conv_from &&
strcmp(to,char_conv_to)==0 && strcmp(from,char_conv_from)==0) strcmp(to,char_conv_to)==0 && strcmp(from,char_conv_from)==0)
@ -133,7 +135,7 @@ char * convStrDup(char * string) {
return NULL; return NULL;
} }
void closeCharSetConversion() { static void closeCharSetConversion() {
if(char_conv_to) { if(char_conv_to) {
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
if(char_conv_use_iconv) iconv_close(char_conv_iconv); if(char_conv_use_iconv) iconv_close(char_conv_iconv);

View File

@ -25,6 +25,4 @@ int setCharSetConversion(char * to, char * from);
char * convStrDup(char * string); char * convStrDup(char * string);
void closeCharSetConversion();
#endif #endif