[MPlayer-cvslog] r33653 - in trunk/gui: cfg.c cfg.h

reimar subversion at mplayerhq.hu
Sun Jun 19 14:23:26 CEST 2011


Author: reimar
Date: Sun Jun 19 14:23:26 2011
New Revision: 33653

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

Modified:
   trunk/gui/cfg.c
   trunk/gui/cfg.h

Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c	Sun Jun 19 14:05:32 2011	(r33652)
+++ trunk/gui/cfg.c	Sun Jun 19 14:23:26 2011	(r33653)
@@ -246,7 +246,7 @@ static char *gfgets(char *str, int size,
     return s;
 }
 
-int cfg_gui_include(m_option_t *conf, char *filename)
+int cfg_gui_include(m_option_t *conf, const char *filename)
 {
     (void)conf;
 

Modified: trunk/gui/cfg.h
==============================================================================
--- trunk/gui/cfg.h	Sun Jun 19 14:05:32 2011	(r33652)
+++ trunk/gui/cfg.h	Sun Jun 19 14:23:26 2011	(r33653)
@@ -82,7 +82,7 @@ extern int gui_main_pos_y;
 extern int gui_sub_pos_x;
 extern int gui_sub_pos_y;
 
-int cfg_gui_include(m_option_t *conf, char *filename);
+int cfg_gui_include(m_option_t *conf, const char *filename);
 int cfg_read(void);
 int cfg_write(void);
 


More information about the MPlayer-cvslog mailing list