From 2f510b169b66e243681e2e3028a63375857c1b7d Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Thu, 1 Aug 2013 23:17:03 +0200 Subject: Change 2nd parameter type of ipset_parse_elem The only place in ipset where ipset_parse_elem is called is src/ipset.c. The second parameter to the function call is type->last_elem_optional, which is of type bool, but ipset_parse_elem is defined in lib/parse.c with the second parameter having type enum ipset_opt. The use in lib/parse.c is clearly as a bool. --- lib/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/parse.c') diff --git a/lib/parse.c b/lib/parse.c index 0058369..6df8f20 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -1812,7 +1812,7 @@ do { \ */ int ipset_parse_elem(struct ipset_session *session, - enum ipset_opt optional, const char *str) + bool optional, const char *str) { const struct ipset_type *type; char *a = NULL, *b = NULL, *tmp, *saved; -- cgit v1.2.3