ipe: constify token_default()

token_default() does not modify its argument, so make it const.

Assisted-by: LLM
Signed-off-by: Fan Wu <wufan@kernel.org>
This commit is contained in:
Fan Wu 2026-10-02 19:51:30 -07:00
parent edf43c0319
commit f4f76b791a

View File

@ -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");
}