From: Glenn Washburn Date: Fri, 31 Jul 2020 14:33:20 +0000 (-0500) Subject: lexer: char const * should be const char * X-Git-Tag: grub-2.06-rc1~198 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c98a78ae81ec75b6fc42d500375e4ea64cee6e2a;p=thirdparty%2Fgrub.git lexer: char const * should be const char * Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- 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);