b43-asm: const-ify yyerror() argument
authorMichael Buesch <m@bues.ch>
Thu, 28 Feb 2013 12:31:30 +0000 (13:31 +0100)
committerMichael Buesch <m@bues.ch>
Thu, 28 Feb 2013 12:31:30 +0000 (13:31 +0100)
This fixes a compiler warning.

Signed-off-by: Michael Buesch <m@bues.ch>
assembler/parser.y

index 317af05a282488cee207c729b60fe400f2500135..358abbb38000f5a5a6b5e1182af15bafd11e9464 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdint.h>
 
 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;