diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-06-28 19:06:08 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-06-28 19:06:08 +0000 |
commit | 70023ca2ae3478b92c277c36173c5563390b9a57 (patch) | |
tree | d6d7575e5e307860f185c209711a524ae771e9ba /src/charset/codecs/codec_utf8.c | |
parent | d7428881c86e1b1305f6d52a9a7a3af5dd5afa37 (diff) | |
download | libparserutils-70023ca2ae3478b92c277c36173c5563390b9a57.tar.gz libparserutils-70023ca2ae3478b92c277c36173c5563390b9a57.tar.bz2 |
Remove unnecessary casting.
svn path=/trunk/libparserutils/; revision=4470
Diffstat (limited to 'src/charset/codecs/codec_utf8.c')
-rw-r--r-- | src/charset/codecs/codec_utf8.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/charset/codecs/codec_utf8.c b/src/charset/codecs/codec_utf8.c index 6ff90c5..d7b51be 100644 --- a/src/charset/codecs/codec_utf8.c +++ b/src/charset/codecs/codec_utf8.c @@ -438,7 +438,7 @@ parserutils_error charset_utf8_codec_read_char(charset_utf8_codec *c, if (*sourcelen > INVAL_BUFSIZE) abort(); - memmove(c->inval_buf, (char *) *source, *sourcelen); + memmove(c->inval_buf, *source, *sourcelen); c->inval_buf[*sourcelen] = '\0'; c->inval_len = *sourcelen; @@ -477,8 +477,7 @@ parserutils_error charset_utf8_codec_read_char(charset_utf8_codec *c, if (*sourcelen > INVAL_BUFSIZE) abort(); - memmove(c->inval_buf, (char *) *source, - *sourcelen); + memmove(c->inval_buf, *source, *sourcelen); c->inval_buf[*sourcelen] = '\0'; c->inval_len = *sourcelen; |