diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-31 09:40:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-31 09:40:04 +0000 |
commit | 7d0270087d3c0f0c625577dfed4e1b3508e659cc (patch) | |
tree | 3e3bd53f659c73b915608e720dba779dad240bc0 | |
parent | 5babf10d754880eb2b5e0e24842acfd6af0f1a56 (diff) | |
download | mpv-7d0270087d3c0f0c625577dfed4e1b3508e659cc.tar.bz2 mpv-7d0270087d3c0f0c625577dfed4e1b3508e659cc.tar.xz |
Make m_config_parse_config_file file name argument const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29601 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | parser-cfg.c | 2 | ||||
-rw-r--r-- | parser-cfg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/parser-cfg.c b/parser-cfg.c index 2b1f354d85..ff3d9f2d34 100644 --- a/parser-cfg.c +++ b/parser-cfg.c @@ -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 diff --git a/parser-cfg.h b/parser-cfg.h index d69f77106a..ed5e64c6a4 100644 --- a/parser-cfg.h +++ b/parser-cfg.h @@ -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); |