Mercurial > mplayer.hg
changeset 29559:8fd1ec0984b9
Make m_config_parse_config_file file name argument const
author | reimar |
---|---|
date | Mon, 31 Aug 2009 09:40:04 +0000 |
parents | e71981bd196c |
children | 61b1e80faf63 |
files | parser-cfg.c parser-cfg.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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);