patch-src_extras_libc_c 959 B

1234567891011121314151617181920212223242526272829
  1. --- vlc-3.0.23.orig/src/extras/libc.c 2025-12-23 11:49:21.000000000 +0100
  2. +++ vlc-3.0.23/src/extras/libc.c 2026-02-22 21:28:32.652332391 +0100
  3. @@ -437,7 +437,7 @@ vlc_iconv_t vlc_iconv_open( const char *
  4. return ( vlc_iconv_t )p_os2_iconv;
  5. # else
  6. - return iconv_open( tocode, fromcode );
  7. + return (vlc_iconv_t)iconv_open( tocode, fromcode );
  8. # endif
  9. #else
  10. return (vlc_iconv_t)(-1);
  11. @@ -470,7 +470,7 @@ size_t vlc_iconv( vlc_iconv_t cd, const
  12. if (inbuf != NULL)
  13. cin = (ICONV_CONST char *)*inbuf;
  14. - ret = iconv( cd, &cin, inbytesleft, outbuf, outbytesleft );
  15. + ret = iconv( (iconv_t)cd, &cin, inbytesleft, outbuf, outbytesleft );
  16. if (inbuf != NULL)
  17. *inbuf = cin;
  18. }
  19. @@ -487,7 +487,7 @@ int vlc_iconv_close( vlc_iconv_t cd )
  20. return 0;
  21. #endif
  22. #if defined(HAVE_ICONV)
  23. - return iconv_close( cd );
  24. + return iconv_close( (iconv_t)cd );
  25. #else
  26. abort ();
  27. #endif