Add const to string pointer argument that will not be modified.
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 19 Jun 2011 13:58:45 +0000 (13:58 +0000)
committerib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 19 Jun 2011 13:58:45 +0000 (13:58 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@33659 b3059339-0415-0410-9bf9-f77b7e298cf2

mencoder.c
mplayer.c

index ba2138a..f1a4214 100644 (file)
@@ -228,7 +228,7 @@ m_config_t* mconfig;
 
 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);
 }
 
index e4d028c..f2bba3e 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -158,7 +158,7 @@ static int cfg_inc_verbose(m_option_t *conf)
     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);
 }