path: root/lib
diff options
authorQuentin Armitage <>2013-08-01 23:17:03 +0200
committerJozsef Kadlecsik <>2013-08-01 23:17:03 +0200
commit2f510b169b66e243681e2e3028a63375857c1b7d (patch)
tree37179fd2f55cddd662b17c38fced0c9c35b80541 /lib
parent4861598047cb8503f09586d61c980578aa56ce69 (diff)
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.
Diffstat (limited to 'lib')
1 files changed, 1 insertions, 1 deletions
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 { \
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;