From: Felix Fietkau Date: Fri, 29 Jul 2011 17:21:51 +0000 (+0200) Subject: s/cleanup_devices/device_free_all/ X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=fc205d64fcd70cda2dc9176ce2662d71c51370ab;hp=50eb00f20aaf86c84a24b8d2aaad13ffff52d3f1 s/cleanup_devices/device_free_all/ --- diff --git a/config.c b/config.c index 18efe96..0f7a652 100644 --- a/config.c +++ b/config.c @@ -165,7 +165,7 @@ config_init_interfaces(const char *name) if (!strcmp(s->type, "interface")) config_parse_interface(s); } - cleanup_devices(); + device_free_all(); config_init = false; start_pending_interfaces(); diff --git a/device.c b/device.c index 9e0881a..120b1f0 100644 --- a/device.c +++ b/device.c @@ -275,7 +275,7 @@ void remove_device_user(struct device_user *dep) } void -cleanup_devices(void) +device_free_all(void) { struct device *dev, *tmp; diff --git a/device.h b/device.h index bd5a581..0406dcf 100644 --- a/device.h +++ b/device.h @@ -141,7 +141,7 @@ int claim_device(struct device *dev); void release_device(struct device *dev); int check_device_state(struct device *dev); -void cleanup_devices(void); +void device_free_all(void); struct device *get_vlan_device_chain(const char *ifname, bool create); struct device *bridge_create(const char *name, struct uci_section *s);