summaryrefslogtreecommitdiff
path: root/src/charset/codecs/codec_utf16.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-06-28 19:06:08 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-06-28 19:06:08 +0000
commit70023ca2ae3478b92c277c36173c5563390b9a57 (patch)
treed6d7575e5e307860f185c209711a524ae771e9ba /src/charset/codecs/codec_utf16.c
parentd7428881c86e1b1305f6d52a9a7a3af5dd5afa37 (diff)
downloadlibparserutils-70023ca2ae3478b92c277c36173c5563390b9a57.tar.gz
libparserutils-70023ca2ae3478b92c277c36173c5563390b9a57.tar.bz2
Remove unnecessary casting.
svn path=/trunk/libparserutils/; revision=4470
Diffstat (limited to 'src/charset/codecs/codec_utf16.c')
-rw-r--r--src/charset/codecs/codec_utf16.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c
index 65f4d1a..8738cf1 100644
--- a/src/charset/codecs/codec_utf16.c
+++ b/src/charset/codecs/codec_utf16.c
@@ -447,7 +447,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_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;
@@ -480,8 +480,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_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;