From: Peter Verthez Date: Sat, 28 Sep 2002 17:46:14 +0000 (+0000) Subject: Use ICONV_CONST to have const correctness. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=a989ed6b8feb891cbd7ef99eec26cdb65c6e442e;p=gedcom-parse.git Use ICONV_CONST to have const correctness. --- diff --git a/utf8/utf8-locale.c b/utf8/utf8-locale.c index de40ded..1b3e255 100644 --- a/utf8/utf8-locale.c +++ b/utf8/utf8-locale.c @@ -14,6 +14,7 @@ #include #include #include +#include "config.h" #include "utf8-locale.h" #define INITIAL_OUTSIZE 256 @@ -60,11 +61,11 @@ int open_conversion_contexts() } } -char* convert_utf8_to_locale(char* input, int *conv_fails) +char* convert_utf8_to_locale(const char* input, int *conv_fails) { size_t insize = strlen(input); size_t outsize; - char *inptr = input; + ICONV_CONST char *inptr = (ICONV_CONST char*) input; char *outptr; size_t nconv; @@ -118,11 +119,11 @@ char* convert_utf8_to_locale(char* input, int *conv_fails) return outbuffer; } -char* convert_locale_to_utf8(char* input) +char* convert_locale_to_utf8(const char* input) { size_t insize = strlen(input); size_t outsize; - char *inptr = input; + ICONV_CONST char *inptr = (ICONV_CONST char*) input; char *outptr; size_t nconv;