changeset 33565:9c4163ef54e4

Add const to string pointer argument that will not be modified.
author reimar
date Sun, 19 Jun 2011 12:23:26 +0000
parents 7dd27b046712
children b2dad0a365ea
files gui/cfg.c gui/cfg.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/cfg.c	Sun Jun 19 12:05:32 2011 +0000
+++ b/gui/cfg.c	Sun Jun 19 12:23:26 2011 +0000
@@ -246,7 +246,7 @@
     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;
 
--- a/gui/cfg.h	Sun Jun 19 12:05:32 2011 +0000
+++ b/gui/cfg.h	Sun Jun 19 12:23:26 2011 +0000
@@ -82,7 +82,7 @@
 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);