From c8dfb6061d6cd36ff5f5154e05c19ff2e8c6dc5f Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 27 Sep 2019 12:52:16 -0700 Subject: [PATCH] netconfig: Rename netconfig destructor The old name will be repurposed for the API. --- src/netconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netconfig.c b/src/netconfig.c index fea322cd..25ac014a 100644 --- a/src/netconfig.c +++ b/src/netconfig.c @@ -83,7 +83,7 @@ static void netconfig_ifaddr_destroy(void *data) l_free(ifaddr); } -static void netconfig_destroy(void *data) +static void netconfig_free(void *data) { struct netconfig *netconfig = data; @@ -750,7 +750,7 @@ bool netconfig_ifindex_remove(uint32_t ifindex) resolve_remove(netconfig->ifindex); } - netconfig_destroy(netconfig); + netconfig_free(netconfig); return true; } @@ -818,7 +818,7 @@ static void netconfig_exit(void) l_netlink_destroy(rtnl); rtnl = NULL; - l_queue_destroy(netconfig_list, netconfig_destroy); + l_queue_destroy(netconfig_list, netconfig_free); } IWD_MODULE(netconfig, netconfig_init, netconfig_exit)