]> git.sesse.net Git - vlc/blobdiff - include/vlc_config_cat.h
Fix memleak in audio equalizer.
[vlc] / include / vlc_config_cat.h
index 931fc52afcaf56b52e2f859c19cb437de7eab5a7..e21c29e8fc40ce6b6e4d49d0b9e6ff8afa057e00 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#if !defined( __LIBVLC__ )
-  #error You are not libvlc or one of its plugins. You cannot include this file
-#endif
-
 #ifndef _VLC_HELP_H
 #define _VLC_HELP_H 1
 
 #define UNKNOWN_HELP N_("There is no help available for these modules.")
 
 /* This function is deprecated and is kept only for compatibility */
-static inline char * GetCapabilityHelp( char *psz_capability, int i_type)
+static inline const char * GetCapabilityHelp( char *psz_capability, int i_type)
 {
+    (void)psz_capability; (void)i_type;
     return " ";
 }
 
@@ -295,7 +292,7 @@ static struct config_category_t categories_array[] =
     { -1, NULL, NULL }
 };
 
-static inline char *config_CategoryNameGet( int i_value )
+static inline const char *config_CategoryNameGet( int i_value )
 {
     int i = 0 ;
     while( categories_array[i].psz_name != NULL )
@@ -309,7 +306,7 @@ static inline char *config_CategoryNameGet( int i_value )
     return NULL;
 }
 
-static inline char *config_CategoryHelpGet( int i_value )
+static inline const char *config_CategoryHelpGet( int i_value )
 {
     int i = 0 ;
     while( categories_array[i].psz_help != NULL )