From: Lennart Poettering Date: Fri, 8 Dec 2017 18:50:51 +0000 (+0100) Subject: resolved: cast dns_scope_get_dns_server() to NULL when we ignore it X-Git-Tag: v236~23^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cdb8930e039e70580626f90bf84e2815fc3e340;p=thirdparty%2Fsystemd.git resolved: cast dns_scope_get_dns_server() to NULL when we ignore it --- diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index e930dd9c93b..0388b5e0769 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -1362,7 +1362,7 @@ static int dns_transaction_prepare(DnsTransaction *t, usec_t ts) { /* Before trying the cache, let's make sure we figured out a * server to use. Should this cause a change of server this * might flush the cache. */ - dns_scope_get_dns_server(t->scope); + (void) dns_scope_get_dns_server(t->scope); /* Let's then prune all outdated entries */ dns_cache_prune(&t->scope->cache);