From 064dfb05f0c69800e731d1d2e8acbf09cac36136 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 30 Sep 2020 05:40:14 +0900 Subject: network: make prefix_free() and route_prefix_free() return NULL --- src/network/networkd-radv.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/network/networkd-radv.h') diff --git a/src/network/networkd-radv.h b/src/network/networkd-radv.h index 496ef97adc..7addf45e94 100644 --- a/src/network/networkd-radv.h +++ b/src/network/networkd-radv.h @@ -42,13 +42,8 @@ struct RoutePrefix { LIST_FIELDS(RoutePrefix, route_prefixes); }; -void prefix_free(Prefix *prefix); - -DEFINE_NETWORK_SECTION_FUNCTIONS(Prefix, prefix_free); - -void route_prefix_free(RoutePrefix *prefix); - -DEFINE_NETWORK_SECTION_FUNCTIONS(RoutePrefix, route_prefix_free); +Prefix *prefix_free(Prefix *prefix); +RoutePrefix *route_prefix_free(RoutePrefix *prefix); int radv_emit_dns(Link *link); int radv_configure(Link *link); -- cgit v1.2.1