fix args to iconv to get rid of warnings

This commit is contained in:
dockes 2005-10-21 12:15:30 +00:00
parent be12ed95ce
commit a8aae47b28

View File

@ -12731,7 +12731,7 @@ static int convert(const char* from, const char* to,
return -1;
}
do {
if(iconv(cd, (ICONV_CONST char **) &in, &in_length, &out, &out_remain) == (size_t)-1) {
if(iconv(cd, &in, &in_length, &out, &out_remain) == (size_t)-1) {
switch(errno) {
case EILSEQ:
/*
@ -12756,7 +12756,7 @@ static int convert(const char* from, const char* to,
if(from_utf16) {
const char* tmp = space;
size_t tmp_length = 2;
if(iconv(cd, (ICONV_CONST char **) &tmp, &tmp_length, &out, &out_remain) == (size_t)-1) {
if(iconv(cd, &tmp, &tmp_length, &out, &out_remain) == (size_t)-1) {
if(errno == E2BIG)
/* fall thru to the E2BIG case below */;
else