[vlc-devel] [PATCH 1/2] config: file: Mark config_CreateDir as static

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Dec 17 16:49:13 UTC 2020


It's not in any other file
---
 src/config/configuration.h | 1 -
 src/config/file.c          | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/config/configuration.h b/src/config/configuration.h
index ec19abc89e..ecf96ef4d8 100644
--- a/src/config/configuration.h
+++ b/src/config/configuration.h
@@ -27,7 +27,6 @@ extern "C" {
 
 /* Internal configuration prototypes and structures */
 
-int  config_CreateDir( vlc_object_t *, const char * );
 int  config_AutoSaveConfigFile( vlc_object_t * );
 
 void config_Free (module_config_t *, size_t);
diff --git a/src/config/file.c b/src/config/file.c
index ae6e8b9ce5..35cd1e4dfe 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -267,7 +267,7 @@ int config_LoadConfigFile( vlc_object_t *p_this )
 /*****************************************************************************
  * config_CreateDir: Create configuration directory if it doesn't exist.
  *****************************************************************************/
-int config_CreateDir( vlc_object_t *p_this, const char *psz_dirname )
+static int config_CreateDir( vlc_object_t *p_this, const char *psz_dirname )
 {
     if( !psz_dirname || !*psz_dirname ) return -1;
 
-- 
2.29.2



More information about the vlc-devel mailing list