# HG changeset patch # User reimar # Date 1251711604 0 # Node ID 8fd1ec0984b9ceb9e92a46b47b7fb48a2e330415 # Parent e71981bd196c83e0e7ef885b909185048f422613 Make m_config_parse_config_file file name argument const diff -r e71981bd196c -r 8fd1ec0984b9 parser-cfg.c --- a/parser-cfg.c Mon Aug 31 09:35:56 2009 +0000 +++ b/parser-cfg.c Mon Aug 31 09:40:04 2009 +0000 @@ -35,7 +35,7 @@ * \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 diff -r e71981bd196c -r 8fd1ec0984b9 parser-cfg.h --- a/parser-cfg.h Mon Aug 31 09:35:56 2009 +0000 +++ b/parser-cfg.h Mon Aug 31 09:40:04 2009 +0000 @@ -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);