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 /include/libipset | |
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 'include/libipset')
-rw-r--r-- | include/libipset/parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |