From a3e400f4aca554102ee4c84082dcf8f7244ff6d4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 27 Sep 2013 15:11:46 +0200 Subject: [PATCH] Change inp argument to const for yaz_read_UTF8_char --- include/yaz/yaz-iconv.h | 2 +- src/utf8.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/yaz/yaz-iconv.h b/include/yaz/yaz-iconv.h index 4c763f7..4ce4e83 100644 --- a/include/yaz/yaz-iconv.h +++ b/include/yaz/yaz-iconv.h @@ -65,7 +65,7 @@ YAZ_EXPORT int yaz_iconv_close (yaz_iconv_t cd); /** \brief tests whether conversion is handled by YAZ' iconv or system iconv */ YAZ_EXPORT int yaz_iconv_isbuiltin(yaz_iconv_t cd); -YAZ_EXPORT unsigned long yaz_read_UTF8_char(unsigned char *inp, +YAZ_EXPORT unsigned long yaz_read_UTF8_char(const unsigned char *inp, size_t inbytesleft, size_t *no_read, int *error); diff --git a/src/utf8.c b/src/utf8.c index fcff6cd..1d2552b 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -38,7 +38,7 @@ static size_t init_utf8(yaz_iconv_t cd, yaz_iconv_decoder_t d, return 0; } -unsigned long yaz_read_UTF8_char(unsigned char *inp, +unsigned long yaz_read_UTF8_char(const unsigned char *inp, size_t inbytesleft, size_t *no_read, int *error) { -- 1.7.10.4