From: Michael Buesch Date: Thu, 28 Feb 2013 12:31:30 +0000 (+0100) Subject: b43-asm: const-ify yyerror() argument X-Git-Tag: b43-fwcutter-018~3 X-Git-Url: https://jxself.org/git/?p=b43-tools.git;a=commitdiff_plain;h=67f189669771643bbbea390f9e1d80265eea660d b43-asm: const-ify yyerror() argument This fixes a compiler warning. Signed-off-by: Michael Buesch --- diff --git a/assembler/parser.y b/assembler/parser.y index 317af05..358abbb 100644 --- a/assembler/parser.y +++ b/assembler/parser.y @@ -23,7 +23,7 @@ #include extern char *yytext; -extern void yyerror(char *); +extern void yyerror(const char *); extern int yyparse(void); extern int yylex(void); @@ -1471,7 +1471,7 @@ identifier : IDENT { int section = SECTION_TEXT; /* default to .text section */ struct initvals_sect *cur_initvals_sect; -void yyerror(char *str) +void yyerror(const char *str) { unsigned int i;