diff options
author | tijl <tijl@FreeBSD.org> | 2015-04-15 09:09:20 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-04-15 09:09:20 +0000 |
commit | b0813ee288f64f677a2cebf7815754b027a8215b (patch) | |
tree | 87498bf268bfd011fdf8bf597761671de1049b22 /usr.bin/iconv | |
parent | 788163adc0d01b144c16af2c10940df70141614a (diff) | |
download | FreeBSD-src-b0813ee288f64f677a2cebf7815754b027a8215b.zip FreeBSD-src-b0813ee288f64f677a2cebf7815754b027a8215b.tar.gz |
Remove the const qualifier from iconv(3) to comply with POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
Adjust all code that calls iconv.
PR: 199099
Exp-run by: antoine
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/iconv')
-rw-r--r-- | usr.bin/iconv/iconv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/iconv/iconv.c b/usr.bin/iconv/iconv.c index dc2aec0..494aaf7 100644 --- a/usr.bin/iconv/iconv.c +++ b/usr.bin/iconv/iconv.c @@ -71,9 +71,8 @@ do_conv(FILE *fp, const char *from, const char *to, bool silent, bool hide_invalid) { iconv_t cd; - char inbuf[INBUFSIZE], outbuf[OUTBUFSIZE], *out; + char inbuf[INBUFSIZE], outbuf[OUTBUFSIZE], *in, *out; unsigned long long invalids; - const char *in; size_t inbytes, outbytes, ret; if ((cd = iconv_open(to, from)) == (iconv_t)-1) |