Remove unused "running" argument form fw3_lookup_ipset()
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 17:40:04 +0000 (19:40 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 18:51:09 +0000 (20:51 +0200)
ipsets.c
ipsets.h
redirects.c
rules.c

index ecccd69acdbf9b922812f2608bf71eafc92d70ea..baa094933c622fb8e31f14f31114c353058aa2ef 100644 (file)
--- a/ipsets.c
+++ b/ipsets.c
@@ -365,8 +365,7 @@ fw3_create_ipsets(struct fw3_state *state)
 
        list_for_each_entry(ipset, &state->ipsets, list)
                if (!hasbit(ipset->flags[0], FW3_FLAG_DELETED))
-                       if (!fw3_lookup_ipset(state, ipset->name, true))
-                               create_ipset(ipset, state);
+                       create_ipset(ipset, state);
 
        fw3_pr("quit\n");
 }
@@ -391,7 +390,7 @@ fw3_destroy_ipsets(struct fw3_state *state, enum fw3_family family)
 }
 
 struct fw3_ipset *
-fw3_lookup_ipset(struct fw3_state *state, const char *name, bool running)
+fw3_lookup_ipset(struct fw3_state *state, const char *name)
 {
        struct fw3_ipset *s;
 
index 186a4171b1bd4e1f4d791f491c906388d49db544..cbab741d4dadc1b0c87b66e7da3b5cbee80453c4 100644 (file)
--- a/ipsets.h
+++ b/ipsets.h
@@ -29,8 +29,7 @@ void fw3_load_ipsets(struct fw3_state *state, struct uci_package *p);
 void fw3_create_ipsets(struct fw3_state *state);
 void fw3_destroy_ipsets(struct fw3_state *state, enum fw3_family family);
 
-struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name,
-                                    bool running);
+struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name);
 
 #define fw3_free_ipset(ipset) \
        fw3_free_object(ipset, fw3_ipset_opts)
index 45d04c8827edeaf24be5e914c558c55452fc0447..6ea91b8123e099674a142266bf741ef41473a994 100644 (file)
@@ -177,7 +177,7 @@ fw3_load_redirects(struct fw3_state *state, struct uci_package *p)
                        continue;
                }
                else if (redir->ipset.set && !redir->ipset.any &&
-                        !(redir->_ipset = fw3_lookup_ipset(state, redir->ipset.name, false)))
+                        !(redir->_ipset = fw3_lookup_ipset(state, redir->ipset.name)))
                {
                        warn_elem(e, "refers to unknown ipset '%s'", redir->ipset.name);
                        fw3_free_redirect(redir);
diff --git a/rules.c b/rules.c
index 36bb6ce76f701ca0c48248ba44e1dee764f0e76f..5a6ea004bf42b33a68e9fd4bc8c705affe509c57 100644 (file)
--- a/rules.c
+++ b/rules.c
@@ -134,7 +134,7 @@ fw3_load_rules(struct fw3_state *state, struct uci_package *p)
                        continue;
                }
                else if (rule->ipset.set && !rule->ipset.any &&
-                        !(rule->_ipset = fw3_lookup_ipset(state, rule->ipset.name, false)))
+                        !(rule->_ipset = fw3_lookup_ipset(state, rule->ipset.name)))
                {
                        warn_elem(e, "refers to unknown ipset '%s'", rule->ipset.name);
                        fw3_free_rule(rule);