From 44cb17317c40fa9d39b3402f0826006f20387be5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 6 Jan 2019 07:20:08 +0100 Subject: Implement simple setting of link state and IP addresses --- src/config-load.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/config-load.c') 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); -- cgit v1.2.3