]> git.sesse.net Git - vlc/commitdiff
Compile fix on windows: vlc_mutex_init() now returns void (corrected).
authorJP Dinger <jpd@videolan.org>
Mon, 25 May 2009 13:15:51 +0000 (15:15 +0200)
committerJP Dinger <jpd@videolan.org>
Mon, 25 May 2009 13:18:08 +0000 (15:18 +0200)
include/vlc_gcrypt.h

index cd5ffd54572cefabaf9f07270041a4da4cc938f5..4d94344ef1e9951de5ff3977f6e8b6b8f9dbc890 100644 (file)
@@ -38,18 +38,13 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
 
 static int gcry_vlc_mutex_init( void **p_sys )
 {
-    int i_val;
     vlc_mutex_t *p_lock = (vlc_mutex_t *)malloc( sizeof( vlc_mutex_t ) );
-
     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 );
+    *p_sys = p_lock;
+    return VLC_SUCCESS;
 }
 
 static int gcry_vlc_mutex_destroy( void **p_sys )