remove the argument to config_init_interfaces
authorFelix Fietkau <nbd@openwrt.org>
Wed, 19 Oct 2011 19:03:34 +0000 (21:03 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 19 Oct 2011 19:03:34 +0000 (21:03 +0200)
config.c
config.h
main.c

index 86c2599..d3f1986 100644 (file)
--- a/config.c
+++ b/config.c
@@ -331,7 +331,7 @@ config_init_package(const char *config)
 }
 
 void
-config_init_interfaces(const char *name)
+config_init_interfaces(void)
 {
        struct uci_package *p = NULL;
        struct uci_element *e;
@@ -352,9 +352,6 @@ config_init_interfaces(const char *name)
        uci_foreach_element(&p->sections, e) {
                struct uci_section *s = uci_to_section(e);
 
-               if (name && strcmp(s->e.name, name) != 0)
-                       continue;
-
                if (!strcmp(s->type, "interface"))
                        config_parse_interface(s);
        }
index c4953c6..f767243 100644 (file)
--- a/config.h
+++ b/config.h
@@ -39,7 +39,7 @@ static inline bool test_bit(unsigned long *bits, int bit)
        return !!(bits[bit / BITS_PER_LONG] & (1UL << (bit % BITS_PER_LONG)));
 }
 
-void config_init_interfaces(const char *name);
+void config_init_interfaces(void);
 bool config_check_equal(struct blob_attr *c1, struct blob_attr *c2,
                        const struct config_param_list *config);
 bool config_diff(struct blob_attr **tb1, struct blob_attr **tb2,
diff --git a/main.c b/main.c
index eeefd52..42f50a3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -238,7 +238,7 @@ static void netifd_do_restart(struct uloop_timeout *timeout)
 
 static void netifd_do_reload(struct uloop_timeout *timeout)
 {
-       config_init_interfaces(NULL);
+       config_init_interfaces();
 }
 
 static struct uloop_timeout main_timer;
@@ -358,7 +358,7 @@ int main(int argc, char **argv)
                return 1;
        }
 
-       config_init_interfaces(NULL);
+       config_init_interfaces();
 
        uloop_run();
        netifd_kill_processes();