fix compilation on win32
authorRafaël Carré <funman@videolan.org>
Mon, 18 Feb 2008 09:09:43 +0000 (09:09 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 18 Feb 2008 09:09:43 +0000 (09:09 +0000)
modules/misc/gnutls.c

index 07239f1..29c8ccf 100644 (file)
@@ -129,22 +129,22 @@ static int gcry_vlc_mutex_init( void **p_sys )
 
 static int gcry_vlc_mutex_destroy( void **p_sys )
 {
-    int i_val;
     vlc_mutex_t *p_lock = (vlc_mutex_t *)*p_sys;
-
-    i_val = vlc_mutex_destroy( p_lock );
+    vlc_mutex_destroy( p_lock );
     free( p_lock );
-    return i_val;
+    return VLC_SUCCESS;
 }
 
 static int gcry_vlc_mutex_lock( void **p_sys )
 {
-    return vlc_mutex_lock( (vlc_mutex_t *)*p_sys );
+    vlc_mutex_lock( (vlc_mutex_t *)*p_sys );
+    return VLC_SUCCESS;
 }
 
 static int gcry_vlc_mutex_unlock( void **lock )
 {
-    return vlc_mutex_unlock( (vlc_mutex_t *)*lock );
+    vlc_mutex_unlock( (vlc_mutex_t *)*lock );
+    return VLC_SUCCESS;
 }
 
 static struct gcry_thread_cbs gcry_threads_vlc =