summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/charset/iconv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/charset/iconv.c b/source4/lib/charset/iconv.c
index df590444e5..28f102a4a0 100644
--- a/source4/lib/charset/iconv.c
+++ b/source4/lib/charset/iconv.c
@@ -563,15 +563,15 @@ static size_t utf8_pull(void *cd, const char **inbuf, size_t *inbytesleft,
*inbytesleft = in_left;
*outbytesleft = out_left;
- *inbuf = c;
- *outbuf = uc;
+ *inbuf = (const char *)c;
+ *outbuf = (char *)uc;
return 0;
error:
*inbytesleft = in_left;
*outbytesleft = out_left;
- *inbuf = c;
- *outbuf = uc;
+ *inbuf = (const char *)c;
+ *outbuf = (char *)uc;
return -1;
}
@@ -676,16 +676,16 @@ static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft,
*inbytesleft = in_left;
*outbytesleft = out_left;
- *inbuf = uc;
- *outbuf = c;
+ *inbuf = (const char *)uc;
+ *outbuf = (char *)c;
return 0;
error:
*inbytesleft = in_left;
*outbytesleft = out_left;
- *inbuf = uc;
- *outbuf = c;
+ *inbuf = (const char *)uc;
+ *outbuf = (char *)c;
return -1;
}