Index: parser-cfg.c =================================================================== --- parser-cfg.c (revision 29565) +++ parser-cfg.c (working copy) @@ -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 @@ -252,7 +252,7 @@ { int msg_lvl, i, r, ret = 0; char* arg; - m_option_t* opt; + const m_option_t* opt; // Hack to shutup the parser error messages. msg_lvl = mp_msg_levels[MSGT_CFGPARSER]; Index: parser-cfg.h =================================================================== --- parser-cfg.h (revision 29565) +++ parser-cfg.h (working copy) @@ -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);