From 74a5f722401afe813209965b9288413e434b60bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 9 May 2005 18:23:32 +0000 Subject: [PATCH] Fix C++ compilation --- include/network.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/network.h b/include/network.h index 4fff09ec98..f0893d45cb 100644 --- a/include/network.h +++ b/include/network.h @@ -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+/"; - char *dst = malloc( strlen( src ) * 4 / 3 + 12 ); + char *dst = (char *)malloc( strlen( src ) * 4 / 3 + 12 ); char *ret = dst; unsigned i_bits = 0; unsigned i_shift = 0; -- 2.39.5