lexer: char const * should be const char *

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2020-07-31 09:33:20 -05:00 committed by Daniel Kiper
parent 84ff10b1c0
commit c98a78ae81
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ grub_script_yylex (union YYSTYPE *value,
} }
void 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) if (err)
grub_error (GRUB_ERR_INVALID_COMMAND, err); grub_error (GRUB_ERR_INVALID_COMMAND, err);

View file

@ -318,7 +318,7 @@ void *grub_script_malloc (struct grub_parser_param *state, grub_size_t size);
union YYSTYPE; union YYSTYPE;
int grub_script_yylex (union YYSTYPE *, struct grub_parser_param *); int grub_script_yylex (union YYSTYPE *, struct grub_parser_param *);
int grub_script_yyparse (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. */ /* Commands to execute, don't use these directly. */
grub_err_t grub_script_execute_cmdline (struct grub_script_cmd *cmd); grub_err_t grub_script_execute_cmdline (struct grub_script_cmd *cmd);