diff options
Diffstat (limited to 'env_universal_common.c')
-rw-r--r-- | env_universal_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/env_universal_common.c b/env_universal_common.c index 80f7119e..caa0e5ce 100644 --- a/env_universal_common.c +++ b/env_universal_common.c @@ -126,7 +126,7 @@ static int get_names_show_exported; static int get_names_show_unexported; -wchar_t *utf2wcs( char *in ) +wchar_t *utf2wcs( const char *in ) { iconv_t cd=(iconv_t) -1; int i,j; @@ -185,7 +185,7 @@ wchar_t *utf2wcs( char *in ) } - nconv = iconv( cd, &in, &in_len, &nout, &out_len ); + nconv = iconv( cd, (char **)&in, &in_len, &nout, &out_len ); if (nconv == (size_t) -1) { @@ -201,7 +201,7 @@ wchar_t *utf2wcs( char *in ) return out; } -char *wcs2utf( wchar_t *in ) +char *wcs2utf( const wchar_t *in ) { iconv_t cd=(iconv_t) -1; int i,j; |