From: Ben Pfaff Date: Sat, 9 Apr 2011 17:55:53 +0000 (-0700) Subject: u8-istream: Add cast to iconv() to suppress warnings on some systems. X-Git-Tag: v0.7.8~80 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d85aa7cb1f027ab076cb3ebb7f34b524ec0f45;p=pspp-builds.git u8-istream: Add cast to iconv() to suppress warnings on some systems. Problem reported by Harry Thijssen . Fix suggested by John Darrington . --- diff --git a/src/libpspp/u8-istream.c b/src/libpspp/u8-istream.c index 9318d59e..c1116343 100644 --- a/src/libpspp/u8-istream.c +++ b/src/libpspp/u8-istream.c @@ -253,7 +253,8 @@ convert_iconv (iconv_t converter, char **inbufp, size_t *inbytesleft, char **outbufp, size_t *outbytesleft) { - size_t n = iconv (converter, inbufp, inbytesleft, outbufp, outbytesleft); + size_t n = iconv (converter, (ICONV_CONST char **) inbufp, inbytesleft, + outbufp, outbytesleft); return n == SIZE_MAX ? errno : 0; }