summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-09 21:17:35 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2011-03-09 21:17:35 (GMT)
commit86d5e37a37cc7628552aae5ffc079da1d307c718 (patch)
treef4a918c19be41b5844d33ade524e3806d3174349
parenta83d0600592a89c8b0a66130ae5c583f3d104dd8 (diff)
downloadlibparserutils-86d5e37a37cc7628552aae5ffc079da1d307c718.tar.gz
libparserutils-86d5e37a37cc7628552aae5ffc079da1d307c718.tar.bz2
Given that some iconv() implementations define the input buffer pointer to be a pointer to a pointer to const data, and some don't, hack around the issue by casting to void *
svn path=/trunk/libparserutils/; revision=11950
-rw-r--r--src/input/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/filter.c b/src/input/filter.c
index 8055bd8..fef7b9c 100644
--- a/src/input/filter.c
+++ b/src/input/filter.c
@@ -194,7 +194,7 @@ parserutils_error parserutils__filter_process_chunk(parserutils_filter *input,
return PARSERUTILS_BADPARM;
#ifdef WITH_ICONV_FILTER
- if (iconv(input->cd, (char **) data, len,
+ if (iconv(input->cd, (void *) data, len,
(char **) output, outlen) == (size_t) -1) {
switch (errno) {
case E2BIG:
@@ -216,7 +216,7 @@ parserutils_error parserutils__filter_process_chunk(parserutils_filter *input,
while (*len > 0) {
size_t ret;
- ret = iconv(input->cd, (char **) data, len,
+ ret = iconv(input->cd, (void *) data, len,
(char **) output, outlen);
if (ret != (size_t) -1 || errno != EILSEQ)
break;