[vlc-commits] config: constify config chain in config_ChainParse

Maxime Meissonnier git at videolan.org
Mon Sep 2 16:11:41 CEST 2019


vlc | branch: master | Maxime Meissonnier <mmeisson at outlook.fr> | Tue Jul 30 09:59:46 2019 +0000| [7f66f0020a371c6233730af4ccfc89244bb625b8] | committer: Thomas Guillem

config: constify config chain in config_ChainParse

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f66f0020a371c6233730af4ccfc89244bb625b8
---

 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 );



More information about the vlc-commits mailing list