]> git.sesse.net Git - vlc/blobdiff - src/modules/configuration_chain.c
Removes trailing spaces. Removes tabs.
[vlc] / src / modules / configuration_chain.c
index 4d8a64baccf9686515ce447bafdbbd0a0ffccebe..0d9196a60e97102e14b623f4c81117bd01778df9 100644 (file)
 
 #include <vlc/vlc.h>
 
-#include <stdlib.h>                                                /* free() */
-#include <stdio.h>                                              /* sprintf() */
-#include <string.h>                                            /* strerror() */
-
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
@@ -242,7 +238,7 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
         snprintf( name, sizeof (name), "%s%s", psz_prefix, optname );
         if( var_Create( p_this, name,
                         config_GetType( p_this, name ) | VLC_VAR_DOINHERIT ) )
-            return /* VLC_xxx */; 
+            return /* VLC_xxx */;
     }
 
     /* Now parse options and set value */
@@ -317,7 +313,6 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
         /* </Check if the option is deprecated> */
 
         /* get the type of the variable */
-        msg_Err( p_this, "name = %s", name );
         i_type = config_GetType( p_this, psz_name );
         if( !i_type )
         {
@@ -374,6 +369,7 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
             free( val2.psz_string );
         }
         var_Set( p_this, psz_name, val );
-        msg_Dbg( p_this, "set config option: %s to %s", psz_name, cfg->psz_value );
+        msg_Dbg( p_this, "set config option: %s to %s", psz_name,
+                 cfg->psz_value ? cfg->psz_value : "(null)" );
     }
 }