]> git.sesse.net Git - vlc/blobdiff - src/network/tls.c
Removes trailing spaces. Removes tabs.
[vlc] / src / network / tls.c
index f8acfc8d4cb639c1724e9f111bba056f4bae3c28..c74be68bdb81ad82cb53b71ef0eb18b295f5fcf6 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * tls.c
  *****************************************************************************
- * Copyright (C) 2004-2005 the VideoLAN team
+ * Copyright © 2004-2007 Rémi Denis-Courmont
  * $Id$
  *
  * Authors: Rémi Denis-Courmont <rem # videolan.org>
@@ -26,7 +26,6 @@
  * libvlc interface to the Transport Layer Security (TLS) plugins.
  */
 
-#include <stdlib.h>
 #include <vlc/vlc.h>
 
 #include <vlc_tls.h>
@@ -37,8 +36,8 @@ tls_Init( vlc_object_t *p_this )
     tls_t *p_tls;
     vlc_value_t lockval;
 
-    var_Create( p_this->p_libvlc_global, "tls_mutex", VLC_VAR_MUTEX );
-    var_Get( p_this->p_libvlc_global, "tls_mutex", &lockval );
+    var_Create( p_this->p_libvlc, "tls_mutex", VLC_VAR_MUTEX );
+    var_Get( p_this->p_libvlc, "tls_mutex", &lockval );
     vlc_mutex_lock( lockval.p_address );
 
     p_tls = vlc_object_find( p_this, VLC_OBJECT_TLS, FIND_ANYWHERE );
@@ -76,11 +75,11 @@ tls_Deinit( tls_t *p_tls )
     int i;
     vlc_value_t lockval;
 
-    var_Get( p_tls->p_libvlc_global, "tls_mutex", &lockval );
+    var_Get( p_tls->p_libvlc, "tls_mutex", &lockval );
     vlc_mutex_lock( lockval.p_address );
 
     vlc_object_release( p_tls );
-    
     i = p_tls->i_refcount;
     if( i == 0 )
         vlc_object_detach( p_tls );
@@ -165,7 +164,7 @@ tls_ClientCreate( vlc_object_t *p_this, int fd, const char *psz_hostname )
     p_tls = tls_Init( p_this );
     if( p_tls == NULL )
         return NULL;
-        
     p_session = p_tls->pf_client_create( p_tls );
     if( p_session != NULL )
     {