diff --git a/parser/parser_include.c b/parser/parser_include.c index d708cb8d7..d44670a1b 100644 --- a/parser/parser_include.c +++ b/parser/parser_include.c @@ -202,7 +202,7 @@ static void start_include_position(const char *filename) current_lineno = 1; } -void push_include_stack(char *filename) +void push_include_stack(const char *filename) { struct include_stack_t *include = NULL; diff --git a/parser/parser_include.h b/parser/parser_include.h index 76b5a647c..52050a7c1 100644 --- a/parser/parser_include.h +++ b/parser/parser_include.h @@ -29,7 +29,7 @@ extern void parse_default_paths(void); extern int do_include_preprocessing(char *profilename); FILE *search_path(char *filename, char **fullpath, bool *skip); -extern void push_include_stack(char *filename); +extern void push_include_stack(const char *filename); extern void pop_include_stack(void); extern void reset_include_stack(const char *filename);