From: JP Dinger Date: Mon, 25 May 2009 12:38:34 +0000 (+0200) Subject: Compile fix on windows -- vlc_mutex_init() now returns void. X-Git-Tag: 1.1.0-ff~5777 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ba8f1f35e809572fb556818662bdf531a8a1c79a;p=vlc Compile fix on windows -- vlc_mutex_init() now returns void. --- diff --git a/include/vlc_gcrypt.h b/include/vlc_gcrypt.h index cd5ffd5457..db054f42c3 100644 --- a/include/vlc_gcrypt.h +++ b/include/vlc_gcrypt.h @@ -44,12 +44,8 @@ static int gcry_vlc_mutex_init( void **p_sys ) if( p_lock == NULL) return ENOMEM; - i_val = vlc_mutex_init( p_lock ); - if( i_val ) - free( p_lock ); - else - *p_sys = p_lock; - return i_val; + vlc_mutex_init( p_lock ); + return VLC_SUCCESS; } static int gcry_vlc_mutex_destroy( void **p_sys )