summaryrefslogtreecommitdiffstats
path: root/src/config-load.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2019-01-06 07:20:08 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2019-01-06 07:20:08 +0100
commit44cb17317c40fa9d39b3402f0826006f20387be5 (patch)
tree54e9d8c49ec41b2d7fd953457ca51545182a779e /src/config-load.c
parentb4bdc797028a3789bb5e0c68bc428bfd54bd200e (diff)
downloadneco-44cb17317c40fa9d39b3402f0826006f20387be5.tar
neco-44cb17317c40fa9d39b3402f0826006f20387be5.zip
Implement simple setting of link state and IP addresses
Diffstat (limited to 'src/config-load.c')
-rw-r--r--src/config-load.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config-load.c b/src/config-load.c
index 92abca0..63a87b4 100644
--- a/src/config-load.c
+++ b/src/config-load.c
@@ -120,8 +120,14 @@ bool read_config(const char *path) {
free(subtypes);
device_t *dev, *tmp;
+ avl_for_each_element(devices, dev, node)
+ dev->type->init(dev);
+
+ //avl_for_each_element(devices, dev, node)
+ // dev->type->release(dev);
+
avl_remove_all_elements(devices, dev, node, tmp)
- dev->type->free_device(dev);
+ dev->type->free(dev);
free(devices);