From b43f1c4073402484239e14fc1a8b1213b9c2660d Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Thu, 10 Oct 2024 10:55:10 -0700 Subject: [PATCH] Make parser_include push_include_stack take const char because it doesn't actually modify it Signed-off-by: Ryan Lee --- parser/parser_include.c | 2 +- parser/parser_include.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);