summaryrefslogtreecommitdiff
path: root/mailbox/filter_iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailbox/filter_iconv.c')
-rw-r--r--mailbox/filter_iconv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mailbox/filter_iconv.c b/mailbox/filter_iconv.c
index c174271d3..1378f7f41 100644
--- a/mailbox/filter_iconv.c
+++ b/mailbox/filter_iconv.c
@@ -352,7 +352,7 @@ _icvt_read (stream_t stream, char *optr, size_t osize,
}
int
-_icvt_strerror (stream_t stream, char **pstr)
+_icvt_strerror (stream_t stream, const char **pstr)
{
struct icvt_stream *s = stream_get_owner (stream);
switch (s->state)
@@ -369,7 +369,7 @@ _icvt_strerror (stream_t stream, char **pstr)
case EILSEQ:
snprintf (s->errbuf, sizeof s->errbuf,
_("Illegal multibyte sequence near %*.*s"),
- s->bufpos, s->bufpos, s->buf);
+ (int) s->bufpos, (int) s->bufpos, s->buf);
break;
default:
@@ -384,7 +384,7 @@ _icvt_strerror (stream_t stream, char **pstr)
break;
default:
- *pstr = (char*) mu_strerror (s->ec);
+ *pstr = mu_strerror (s->ec);
}
return 0;

Return to:

Send suggestions and report system problems to the System administrator.