diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-26 10:10:44 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-26 10:10:44 +0000 |
commit | b508464cb87e65b3f9568bd70455e83bd41b5ce4 (patch) | |
tree | ca25ac13818a0b49a45e98587667d7fb28ec3553 /lib/uniconv | |
parent | 5b57d6d54bcc8b9339b6216e0d62e750ab6e2ef3 (diff) | |
download | gnulib-b508464cb87e65b3f9568bd70455e83bd41b5ce4.tar.gz |
Avoid compiler warnings.
Diffstat (limited to 'lib/uniconv')
-rw-r--r-- | lib/uniconv/u8-conv-from-enc.c | 2 | ||||
-rw-r--r-- | lib/uniconv/u8-strconv-to-enc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/uniconv/u8-conv-from-enc.c b/lib/uniconv/u8-conv-from-enc.c index d86ce1d7e8..a193211ff1 100644 --- a/lib/uniconv/u8-conv-from-enc.c +++ b/lib/uniconv/u8-conv-from-enc.c @@ -55,7 +55,7 @@ u8_conv_from_encoding (const char *fromcode, 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 (); diff --git a/lib/uniconv/u8-strconv-to-enc.c b/lib/uniconv/u8-strconv-to-enc.c index 7dee051a77..35a922014a 100644 --- a/lib/uniconv/u8-strconv-to-enc.c +++ b/lib/uniconv/u8-strconv-to-enc.c @@ -63,7 +63,7 @@ u8_strconv_to_encoding (const uint8_t *string, { 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) |