changeset 33571:4f9ad91c79b4

Add const to string pointer argument that will not be modified.
author ib
date Sun, 19 Jun 2011 13:58:45 +0000
parents f4a32f67fee7
children d9b805602aa1
files mencoder.c mplayer.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }
 
--- 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);
 }