Remove unused "running" argument form fw3_lookup_zone()
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 17:34:37 +0000 (19:34 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 17:34:37 +0000 (19:34 +0200)
forwards.c
redirects.c
rules.c
zones.c
zones.h

index fad347e1a73e6cacfc5199705f10134da49b81a9..6ea0497698a3a84349668fe375fadb882a8d5251 100644 (file)
@@ -72,14 +72,14 @@ fw3_load_forwards(struct fw3_state *state, struct uci_package *p)
                        continue;
                }
                else if (forward->src.set && !forward->src.any &&
-                        !(forward->_src = fw3_lookup_zone(state, forward->src.name, false)))
+                        !(forward->_src = fw3_lookup_zone(state, forward->src.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", forward->src.name);
                        fw3_free_forward(forward);
                        continue;
                }
                else if (forward->dest.set && !forward->dest.any &&
-                        !(forward->_dest = fw3_lookup_zone(state, forward->dest.name, false)))
+                        !(forward->_dest = fw3_lookup_zone(state, forward->dest.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", forward->dest.name);
                        fw3_free_forward(forward);
index 0a13d85593169cbdc550cea3fa537d591384aa8e..45d04c8827edeaf24be5e914c558c55452fc0447 100644 (file)
@@ -157,14 +157,14 @@ fw3_load_redirects(struct fw3_state *state, struct uci_package *p)
                        continue;
                }
                else if (redir->src.set && !redir->src.any &&
-                        !(redir->_src = fw3_lookup_zone(state, redir->src.name, false)))
+                        !(redir->_src = fw3_lookup_zone(state, redir->src.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", redir->src.name);
                        fw3_free_redirect(redir);
                        continue;
                }
                else if (redir->dest.set && !redir->dest.any &&
-                        !(redir->_dest = fw3_lookup_zone(state, redir->dest.name, false)))
+                        !(redir->_dest = fw3_lookup_zone(state, redir->dest.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", redir->dest.name);
                        fw3_free_redirect(redir);
diff --git a/rules.c b/rules.c
index 287ad90716ed00ea5463b2be6b61b65e92659a3b..36bb6ce76f701ca0c48248ba44e1dee764f0e76f 100644 (file)
--- a/rules.c
+++ b/rules.c
@@ -114,14 +114,14 @@ fw3_load_rules(struct fw3_state *state, struct uci_package *p)
                        continue;
                }
                else if (rule->src.set && !rule->src.any &&
-                        !(rule->_src = fw3_lookup_zone(state, rule->src.name, false)))
+                        !(rule->_src = fw3_lookup_zone(state, rule->src.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", rule->src.name);
                        fw3_free_rule(rule);
                        continue;
                }
                else if (rule->dest.set && !rule->dest.any &&
-                        !(rule->_dest = fw3_lookup_zone(state, rule->dest.name, false)))
+                        !(rule->_dest = fw3_lookup_zone(state, rule->dest.name)))
                {
                        warn_elem(e, "refers to not existing zone '%s'", rule->dest.name);
                        fw3_free_rule(rule);
diff --git a/zones.c b/zones.c
index 0306a0cc78838279ed3ead09d0f57d2c18865121..d5d945bc52d8234ea3117852c67a023c40848d0a 100644 (file)
--- a/zones.c
+++ b/zones.c
@@ -561,7 +561,7 @@ fw3_hotplug_zones(struct fw3_state *state, bool add)
 }
 
 struct fw3_zone *
-fw3_lookup_zone(struct fw3_state *state, const char *name, bool running)
+fw3_lookup_zone(struct fw3_state *state, const char *name)
 {
        struct fw3_zone *z;
 
diff --git a/zones.h b/zones.h
index 63ed3a596ed5c8ae43f22b092ac4137bebdc469c..dd449a6fa5a39b5b20c655abfebf500691c40ef0 100644 (file)
--- a/zones.h
+++ b/zones.h
@@ -38,8 +38,7 @@ void fw3_flush_zones(struct fw3_state *state, enum fw3_family family,
 
 void fw3_hotplug_zones(struct fw3_state *state, bool add);
 
-struct fw3_zone * fw3_lookup_zone(struct fw3_state *state, const char *name,
-                                  bool running);
+struct fw3_zone * fw3_lookup_zone(struct fw3_state *state, const char *name);
 
 void fw3_free_zone(struct fw3_zone *zone);