FROMLIST: Fix invalid use of iconv_t*
When building this file against glibc, no warnings are seen. However,
when building for an arm64 Android target (using the bionic glibc), the
following warning is seen:
external/mtools/charsetConv.c:119:7: error: incompatible pointer types
assigning to 'iconv_t *' (aka 'struct __iconv_t **') from 'iconv_t'
(aka 'struct __iconv_t *') [-Werror,-Wincompatible-pointer-types]
from = iconv_open(wcharCp, dosCp);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
The code looks wrong; it shouldn't be using iconv_t*, rather it should
use iconv_t, like the rest of the file. Fix it.
Bug: 185191460
Link: https://lists.gnu.org/archive/html/info-mtools/2021-04/msg00001.html
Test: lunch aosp_cf_arm64_phone-userdebug && m -j32 hosttar
Change-Id: I00d87913bb3ce126878d0cd8c94911e4841e7350
1 file changed