Commit 74a5f722 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix C++ compilation

parent 83f79015
...@@ -238,11 +238,11 @@ static inline int vlc_UrlIsNotEncoded( const char *psz_url ) ...@@ -238,11 +238,11 @@ static inline int vlc_UrlIsNotEncoded( const char *psz_url )
***************************************************************************** *****************************************************************************
* *
*****************************************************************************/ *****************************************************************************/
static inline char *vlc_b64_encode( unsigned char *src ) static inline char *vlc_b64_encode( char *src )
{ {
static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
char *dst = malloc( strlen( src ) * 4 / 3 + 12 ); char *dst = (char *)malloc( strlen( src ) * 4 / 3 + 12 );
char *ret = dst; char *ret = dst;
unsigned i_bits = 0; unsigned i_bits = 0;
unsigned i_shift = 0; unsigned i_shift = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment