From 5878b0a779263b7b4b0db98dd8d7438c307c68d3 Mon Sep 17 00:00:00 2001 From: Manvendra Bhangui Date: Fri, 10 May 2024 09:12:46 +0530 Subject: [PATCH] include parsers.h for yyerror proto --- logalert-x/lex.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logalert-x/lex.l b/logalert-x/lex.l index 3f9d67778..6821cbab8 100644 --- a/logalert-x/lex.l +++ b/logalert-x/lex.l @@ -3,6 +3,7 @@ #include #include "parser.h" +#include "parsers.h" unsigned int in_block = 0; extern unsigned int lineno; @@ -26,7 +27,7 @@ extern unsigned int lineno; in_block = 0; printf("finished block\n"); } else { - yyerror("ERRO: NOT in block"); + yyerror("ERROR: NOT in block"); } } match|regex { printf("OPA MATCH %d\n",in_block); return MATCH; }