From c98a78ae81ec75b6fc42d500375e4ea64cee6e2a Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Fri, 31 Jul 2020 09:33:20 -0500 Subject: [PATCH] lexer: char const * should be const char * Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- grub-core/script/lexer.c | 2 +- include/grub/script_sh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/script/lexer.c b/grub-core/script/lexer.c index 5fb0cbd0b..57778f881 100644 --- a/grub-core/script/lexer.c +++ b/grub-core/script/lexer.c @@ -346,7 +346,7 @@ grub_script_yylex (union YYSTYPE *value, } void -grub_script_yyerror (struct grub_parser_param *state, char const *err) +grub_script_yyerror (struct grub_parser_param *state, const char *err) { if (err) grub_error (GRUB_ERR_INVALID_COMMAND, err); diff --git a/include/grub/script_sh.h b/include/grub/script_sh.h index 6c48e0751..e5b4d8450 100644 --- a/include/grub/script_sh.h +++ b/include/grub/script_sh.h @@ -318,7 +318,7 @@ void *grub_script_malloc (struct grub_parser_param *state, grub_size_t size); union YYSTYPE; int grub_script_yylex (union YYSTYPE *, struct grub_parser_param *); int grub_script_yyparse (struct grub_parser_param *); -void grub_script_yyerror (struct grub_parser_param *, char const *); +void grub_script_yyerror (struct grub_parser_param *, const char *); /* Commands to execute, don't use these directly. */ grub_err_t grub_script_execute_cmdline (struct grub_script_cmd *cmd);