From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: intlconv: The iconv() function signature isn't different on current FreeBSD. X-Git-Tag: v4.2.5~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7ce911f75ccbb12ae139721a9315e4e96aa8e62;p=thirdparty%2Ftvheadend.git intlconv: The iconv() function signature isn't different on current FreeBSD. Casting to const char ** is not only unnecessary, but also triggers a warning by the compiler. --- diff --git a/src/intlconv.c b/src/intlconv.c index ec0fbae25..3fe3eb683 100644 --- a/src/intlconv.c +++ b/src/intlconv.c @@ -20,12 +20,7 @@ static inline size_t tvh_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { -#ifdef PLATFORM_FREEBSD - return iconv(cd, (const char **)inbuf, inbytesleft, - (const char **)outbuf, outbytesleft); -#else return iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); -#endif } void