[MPlayer-cvslog] r33659 - in trunk: mencoder.c mplayer.c

ib subversion at mplayerhq.hu
Sun Jun 19 15:58:46 CEST 2011


Author: ib
Date: Sun Jun 19 15:58:45 2011
New Revision: 33659

Log:
Add const to string pointer argument that will not be modified.

Modified:
   trunk/mencoder.c
   trunk/mplayer.c

Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	Sun Jun 19 15:01:20 2011	(r33658)
+++ trunk/mencoder.c	Sun Jun 19 15:58:45 2011	(r33659)
@@ -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);
 }
 

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sun Jun 19 15:01:20 2011	(r33658)
+++ trunk/mplayer.c	Sun Jun 19 15:58:45 2011	(r33659)
@@ -158,7 +158,7 @@ static int cfg_inc_verbose(m_option_t *c
     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);
 }


More information about the MPlayer-cvslog mailing list