From 39963f1123b3c192dd72e88d5403e4d39deabcba Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Dec 2015 19:44:15 +0100 Subject: resolved: rename dns_cache_item_remove_and_free() → _unlink_and_free() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In most of the other call, we called similar functions that remove the data structure link-ups to other objects "unlink", hence we should here, too. --- src/resolve/resolved-dns-cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resolve') diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c index c0bfcce7cd..0aacc74e5e 100644 --- a/src/resolve/resolved-dns-cache.c +++ b/src/resolve/resolved-dns-cache.c @@ -68,7 +68,7 @@ static void dns_cache_item_free(DnsCacheItem *i) { DEFINE_TRIVIAL_CLEANUP_FUNC(DnsCacheItem*, dns_cache_item_free); -static void dns_cache_item_remove_and_free(DnsCache *c, DnsCacheItem *i) { +static void dns_cache_item_unlink_and_free(DnsCache *c, DnsCacheItem *i) { DnsCacheItem *first; assert(c); @@ -99,7 +99,7 @@ static bool dns_cache_remove_by_rr(DnsCache *c, DnsResourceRecord *rr) { if (r < 0) return r; if (r > 0) { - dns_cache_item_remove_and_free(c, i); + dns_cache_item_unlink_and_free(c, i); return true; } } @@ -195,7 +195,7 @@ void dns_cache_prune(DnsCache *c) { * either remove only this one RR or the whole * RRset */ if (i->shared_owner) - dns_cache_item_remove_and_free(c, i); + dns_cache_item_unlink_and_free(c, i); else { _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; -- cgit v1.2.3-54-g00ecf