[vlc-commits] config: file: Mark config_CreateDir as static

Hugo Beauzée-Luyssen git at videolan.org
Fri Dec 18 11:45:43 UTC 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 17 17:31:43 2020 +0100| [4bb3e03ced3e9a18654eda25c182352b6cc3ebc9] | committer: Hugo Beauzée-Luyssen

config: file: Mark config_CreateDir as static

It's not in any other file

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

 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;
 



More information about the vlc-commits mailing list