[vlc-devel] [PATCH] config: constify config chain in config_ChainParse

Maxime ... mmeisson at outlook.fr
Tue Jul 30 11:59:46 CEST 2019


---
 include/vlc_configuration.h | 2 +-
 src/config/chain.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_configuration.h b/include/vlc_configuration.h
index f1467c9a0c..d4b8fc2473 100644
--- a/include/vlc_configuration.h
+++ b/include/vlc_configuration.h
@@ -342,7 +342,7 @@ struct config_chain_t
  *
  * The option names will be created by adding the psz_prefix prefix.
  */
-VLC_API void config_ChainParse( vlc_object_t *, const char *psz_prefix, const char *const *ppsz_options, config_chain_t * );
+VLC_API void config_ChainParse( vlc_object_t *, const char *psz_prefix, const char *const *ppsz_options, const config_chain_t * );
 #define config_ChainParse( a, b, c, d ) config_ChainParse( VLC_OBJECT(a), b, c, d )
 
 /**
diff --git a/src/config/chain.c b/src/config/chain.c
index 5f07fe190b..0debcaed63 100644
--- a/src/config/chain.c
+++ b/src/config/chain.c
@@ -268,7 +268,7 @@ void config_ChainDestroy( config_chain_t *p_cfg )
 
 #undef config_ChainParse
 void config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
-                        const char *const *ppsz_options, config_chain_t *cfg )
+                        const char *const *ppsz_options, const config_chain_t *cfg )
 {
     if( psz_prefix == NULL ) psz_prefix = "";
     size_t plen = 1 + strlen( psz_prefix );
-- 
2.17.1



More information about the vlc-devel mailing list