summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-19 21:03:34 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-19 21:03:34 +0200
commit7831c630912c9dc9e592d282ba1f9485c1dff9cc (patch)
tree3f56e4ac79765ec8babfb03f84eba74564a18639 /config.c
parent33a44b9c7d5e8c87303b8126fe9e01f8979f48e5 (diff)
remove the argument to config_init_interfaces
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/config.c b/config.c
index 86c2599..d3f1986 100644
--- 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);
}