[PATCH v3 2/2] parser_bison: Use __error() to avoid syntax error message duplication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Calls to erec_queue() from yyerror() already have "syntax error" in the
body of the message, then __error() must be used.

Signed-off-by: Elise Lennion <elise.lennion@xxxxxxxxx>
---
 v3: Separate changes in different patches

 src/parser_bison.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser_bison.y b/src/parser_bison.y
index 91955c1..58385fa 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -47,7 +47,7 @@ void parser_init(struct parser_state *state, struct list_head *msgs)
 static void yyerror(struct location *loc, void *scanner,
 		    struct parser_state *state, const char *s)
 {
-	erec_queue(error(loc, "%s", s), state->msgs);
+	erec_queue(__error(loc, "%s", s), state->msgs);
 }
 
 static struct scope *current_scope(const struct parser_state *state)
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux