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. --- include/libipset/parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libipset') diff --git a/include/libipset/parse.h b/include/libipset/parse.h index 8e0c715..ee16fb5 100644 --- a/include/libipset/parse.h +++ b/include/libipset/parse.h @@ -93,7 +93,7 @@ extern int ipset_parse_output(struct ipset_session *session, extern int ipset_parse_ignored(struct ipset_session *session, enum ipset_opt opt, const char *str); extern int ipset_parse_elem(struct ipset_session *session, - enum ipset_opt opt, const char *str); + bool optional, const char *str); extern int ipset_call_parser(struct ipset_session *session, const struct ipset_arg *arg, const char *str); -- cgit v1.2.3