summaryrefslogtreecommitdiffstats
path: root/src/exfat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:09:08 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:09:08 +0100
commit42428f901ced65f7368e0a152509215d603cc98b (patch)
tree0d0747ad9cf0cd8ee4447848b161b0909ef8efe9 /src/exfat_dir.c
parent4c29e6b6fee14eca18bd4555cb97c73ad8db2fdd (diff)
Swap gcc warning by another in exfat_ucstoutf8()
Diffstat (limited to 'src/exfat_dir.c')
-rw-r--r--src/exfat_dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exfat_dir.c b/src/exfat_dir.c
index 4a3627a..041b889 100644
--- a/src/exfat_dir.c
+++ b/src/exfat_dir.c
@@ -79,18 +79,18 @@ static inline void exfat16_towchar(wchar_t *dst, const uint8_t *src, size_t len)
#ifdef HAVE_ICONV
static int exfat_ucstoutf8(iconv_t cd, const unsigned char *ins, const unsigned int ins_len, char **outs, const unsigned int outs_len)
{
- char *inp;
+ const char *inp;
char *outp;
size_t inb_left, outb_left;
if (cd == (iconv_t)(-1))
return -1;
outp = *outs;
- inp = ins;
+ inp = (const char *)ins;
inb_left = ins_len;
outb_left = outs_len - 1; // reserve 1 byte for NUL
- if (iconv(cd, &inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
+ if (iconv(cd, (char **)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
{
// Regardless of the value of errno
log_error("exfat_ucstoutf8: iconv failed %s\n", strerror(errno));