# HG changeset patch # User ib # Date 1308491925 0 # Node ID 4f9ad91c79b43cd3fdaa820f883b5538ebf57148 # Parent f4a32f67fee70c72ca1b8ba4fdf76fcd6175614e Add const to string pointer argument that will not be modified. diff -r f4a32f67fee7 -r 4f9ad91c79b4 mencoder.c --- a/mencoder.c Sun Jun 19 13:01:20 2011 +0000 +++ b/mencoder.c Sun Jun 19 13:58:45 2011 +0000 @@ -228,7 +228,7 @@ static int cfg_inc_verbose(m_option_t *conf){ ++verbose; return 0;} -static int cfg_include(m_option_t *conf, char *filename){ +static int cfg_include(m_option_t *conf, const char *filename){ return m_config_parse_config_file(mconfig, filename); } diff -r f4a32f67fee7 -r 4f9ad91c79b4 mplayer.c --- a/mplayer.c Sun Jun 19 13:01:20 2011 +0000 +++ b/mplayer.c Sun Jun 19 13:58:45 2011 +0000 @@ -158,7 +158,7 @@ return 0; } -static int cfg_include(m_option_t *conf, char *filename) +static int cfg_include(m_option_t *conf, const char *filename) { return m_config_parse_config_file(mconfig, filename); }