mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 12:58:07 +00:00
Make parser_include push_include_stack take const char because it doesn't actually modify it
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
8d6270e1fe
commit
b43f1c4073
@ -202,7 +202,7 @@ static void start_include_position(const char *filename)
|
|||||||
current_lineno = 1;
|
current_lineno = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void push_include_stack(char *filename)
|
void push_include_stack(const char *filename)
|
||||||
{
|
{
|
||||||
struct include_stack_t *include = NULL;
|
struct include_stack_t *include = NULL;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ extern void parse_default_paths(void);
|
|||||||
extern int do_include_preprocessing(char *profilename);
|
extern int do_include_preprocessing(char *profilename);
|
||||||
FILE *search_path(char *filename, char **fullpath, bool *skip);
|
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 pop_include_stack(void);
|
||||||
extern void reset_include_stack(const char *filename);
|
extern void reset_include_stack(const char *filename);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user