summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-05 03:55:54 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-05 03:55:54 +0200
commit5f739f10e9d7af0eb412102356434f905ed8f467 (patch)
treef4c349752dd23c6d56fc29ec5a6fff6c81f2e424 /config.c
parent03f9afd81fcb9943648f5398a2bda5e7d90ca4a7 (diff)
improve interface for cleaning up unused devices
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 1649cee..2fba534 100644
--- a/config.c
+++ b/config.c
@@ -221,7 +221,7 @@ config_init_interfaces(const char *name)
if (!strcmp(s->type, "interface"))
config_parse_interface(s);
}
- device_free_all();
+ device_free_unused(NULL);
config_init = false;
interface_start_pending();