# HG changeset patch # User reimar # Date 1308486206 0 # Node ID 9c4163ef54e4f3a20de849a890c15c15b6b60b82 # Parent 7dd27b04671259cb4813b516dc7318290b7bb840 Add const to string pointer argument that will not be modified. diff -r 7dd27b046712 -r 9c4163ef54e4 gui/cfg.c --- 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; diff -r 7dd27b046712 -r 9c4163ef54e4 gui/cfg.h --- 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);