[vlc-commits] Fix config_IsSafe() declaration warning

Rémi Denis-Courmont git at videolan.org
Thu Jul 21 16:50:59 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 21 17:20:25 2011 +0300| [d8a9e80f2670523c03f7602bef3d4d9c3422f246] | committer: Rémi Denis-Courmont

Fix config_IsSafe() declaration warning

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/config/configuration.h |    2 ++
 src/libvlc.h               |    2 --
 src/misc/variables.c       |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/config/configuration.h b/src/config/configuration.h
index d9f420f..78ff73c 100644
--- a/src/config/configuration.h
+++ b/src/config/configuration.h
@@ -61,6 +61,8 @@ static inline bool IsConfigFloatType (int type)
 
 extern vlc_rwlock_t config_lock;
 
+bool config_IsSafe (const char *);
+
 /* The configuration file */
 #define CONFIG_FILE                     "vlcrc"
 
diff --git a/src/libvlc.h b/src/libvlc.h
index b5f8da8..6cd275b 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -235,8 +235,6 @@ extern const size_t libvlc_config_count;
  * Variables stuff
  */
 void var_OptionParse (vlc_object_t *, const char *, bool trusted);
-bool config_IsSafe (const char *);
-
 
 /*
  * Stats stuff
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 801782e..3a406e7 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -37,6 +37,7 @@
 #endif
 
 #include "libvlc.h"
+#include "config/configuration.h"
 
 #include <assert.h>
 #include <math.h>



More information about the vlc-commits mailing list