From 70023ca2ae3478b92c277c36173c5563390b9a57 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sat, 28 Jun 2008 19:06:08 +0000 Subject: Remove unnecessary casting. svn path=/trunk/libparserutils/; revision=4470 --- src/charset/codecs/codec_utf8.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/charset/codecs/codec_utf8.c') 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; -- cgit v1.2.3