discover/grub2: fix incorrect prototype in yyerror
[petitboot] / discover / grub2 / grub2-lexer.l
index 7c9fcfe81537459fb40f102c4e9bbb150b2854f7..066af6073baa78012a8dd7d513696adb96eefaa9 100644 (file)
@@ -119,7 +119,8 @@ VARNAME ([[:alpha:]][_[:alnum:]]*|[0-9]|[\?@\*#])
 #.*    ;
 
 .      {
-               yyerror(yyget_extra(yyscanner), "unknown token '%s'\n", yytext);
+               yyerror(yyget_extra(yyscanner), yyscanner,
+                               "unknown token '%s'\n", yytext);
                yyterminate();
        }