From f4f76b791afd3bfab64165574a216833210a0ed5 Mon Sep 17 00:00:00 2001 From: Fan Wu Date: Fri, 2 Oct 2026 19:51:30 -0700 Subject: [PATCH] ipe: constify token_default() token_default() does not modify its argument, so make it const. Assisted-by: LLM Signed-off-by: Fan Wu --- security/ipe/policy_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/ipe/policy_parser.c b/security/ipe/policy_parser.c index 6fa5bebf8471..f1c05e53667f 100644 --- a/security/ipe/policy_parser.c +++ b/security/ipe/policy_parser.c @@ -201,7 +201,7 @@ static int parse_header(char *line, struct ipe_parsed_policy *p) * * %false - The token is not "DEFAULT" * * %true - The token is "DEFAULT" */ -static bool token_default(char *token) +static bool token_default(const char *token) { return !strcmp(token, "DEFAULT"); }