diff options
author | Quentin Armitage <quentin@armitage.org.uk> | 2013-08-01 23:17:03 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-08-01 23:17:03 +0200 |
commit | 2f510b169b66e243681e2e3028a63375857c1b7d (patch) | |
tree | 37179fd2f55cddd662b17c38fced0c9c35b80541 /lib/parse.c | |
parent | 4861598047cb8503f09586d61c980578aa56ce69 (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/parse.c')
-rw-r--r-- | lib/parse.c | 2 |
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 { \ */ 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; |