X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=charset%2Fmp-charconv.h;h=ab6f65d924f71708bf6723afb296c0ebe45558a6;hb=ab3b3f178718c0ae7b5738e987e350537574d2e6;hp=f33cd373e590620a7ceb9e6051d3b166fc89952c;hpb=47a0795e8a28e8ad6ff55cda89e300267d9e590c;p=libucw.git diff --git a/charset/mp-charconv.h b/charset/mp-charconv.h index f33cd373..ab6f65d9 100644 --- a/charset/mp-charconv.h +++ b/charset/mp-charconv.h @@ -13,14 +13,14 @@ #include "lib/mempool.h" #include "charset/charconv.h" -byte *mp_strconv(struct mempool *mp, byte *s, uns cs_in, uns cs_out); +byte *mp_strconv(struct mempool *mp, const byte *s, uns cs_in, uns cs_out); static inline byte * -mp_strconv_to_utf8(struct mempool *mp, byte *s, uns cs_in) +mp_strconv_to_utf8(struct mempool *mp, const byte *s, uns cs_in) { return mp_strconv(mp, s, cs_in, CONV_CHARSET_UTF8); } static inline byte * -mp_strconv_from_utf8(struct mempool *mp, byte *s, uns cs_out) +mp_strconv_from_utf8(struct mempool *mp, const byte *s, uns cs_out) { return mp_strconv(mp, s, CONV_CHARSET_UTF8, cs_out); } #endif