Mercurial > hg > octave-jordi > gnulib-hg
changeset 8555:5d2729421f67
Avoid compiler warnings.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 26 Mar 2007 10:10:44 +0000 |
parents | 35eb5062216c |
children | 0fed3810684e |
files | ChangeLog lib/uniconv/u8-conv-from-enc.c lib/uniconv/u8-strconv-to-enc.c |
diffstat | 3 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-25 Bruno Haible <bruno@clisp.org> + + * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast. + * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise. + 2007-03-25 Bruno Haible <bruno@clisp.org> * lib/vasnprintf.c: Include langinfo.h.
--- a/lib/uniconv/u8-conv-from-enc.c +++ b/lib/uniconv/u8-conv-from-enc.c @@ -55,7 +55,7 @@ for (i = 0; i < srclen; ) { - int count = u8_mblen (src + i, srclen - i); + int count = u8_mblen ((const uint8_t *) src + i, srclen - i); /* We can rely on count > 0 because of the previous u8_check. */ if (count <= 0) abort ();
--- a/lib/uniconv/u8-strconv-to-enc.c +++ b/lib/uniconv/u8-strconv-to-enc.c @@ -63,7 +63,7 @@ { result = NULL; length = 0; - if (mem_iconveha (string, u8_strlen (string) + 1, + if (mem_iconveha ((const char *) string, u8_strlen (string) + 1, "UTF-8", tocode, handler == iconveh_question_mark, handler, NULL, &result, &length) < 0)