[MPlayer-cvslog] r29601 - in trunk: parser-cfg.c parser-cfg.h

reimar subversion at mplayerhq.hu
Mon Aug 31 11:40:04 CEST 2009


Author: reimar
Date: Mon Aug 31 11:40:04 2009
New Revision: 29601

Log:
Make m_config_parse_config_file file name argument const

Modified:
   trunk/parser-cfg.c
   trunk/parser-cfg.h

Modified: trunk/parser-cfg.c
==============================================================================
--- trunk/parser-cfg.c	Mon Aug 31 11:35:56 2009	(r29600)
+++ trunk/parser-cfg.c	Mon Aug 31 11:40:04 2009	(r29601)
@@ -35,7 +35,7 @@ static int recursion_depth = 0;
  *  \param conffile Path to the config file.
  *  \return 1 on sucess, -1 on error.
  */
-int m_config_parse_config_file(m_config_t* config, char *conffile)
+int m_config_parse_config_file(m_config_t* config, const char *conffile)
 {
 #define PRINT_LINENUM	mp_msg(MSGT_CFGPARSER,MSGL_V,"%s(%d): ", conffile, line_num)
 #define MAX_LINE_LEN	10000

Modified: trunk/parser-cfg.h
==============================================================================
--- trunk/parser-cfg.h	Mon Aug 31 11:35:56 2009	(r29600)
+++ trunk/parser-cfg.h	Mon Aug 31 11:40:04 2009	(r29601)
@@ -3,7 +3,7 @@
 
 #include "m_config.h"
 
-int m_config_parse_config_file(m_config_t* config, char *conffile);
+int m_config_parse_config_file(m_config_t* config, const char *conffile);
 
 int m_config_preparse_command_line(m_config_t *config, int argc, char **argv);
 


More information about the MPlayer-cvslog mailing list