break;
}
- fw3_ubus_address_free(addr_list);
+ fw3_free_list(addr_list);
}
}
&ref_addr, int_addr, ext_addr);
}
- fw3_ubus_address_free(int_addrs);
+ fw3_free_list(int_addrs);
}
- fw3_ubus_address_free(ext_addrs);
+ fw3_free_list(ext_addrs);
}
}
{
return invoke_common(net, false);
}
-
-void
-fw3_ubus_address_free(struct list_head *list)
-{
- struct fw3_address *addr, *tmp;
-
- list_for_each_entry_safe(addr, tmp, list, list)
- {
- list_del(&addr->list);
- free(addr);
- }
-
- free(list);
-}
struct fw3_device * fw3_ubus_device(const char *net);
struct list_head * fw3_ubus_address(const char *net);
-void fw3_ubus_address_free(struct list_head *list);
#endif