diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-15 16:14:53 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-19 08:10:29 +0900 |
commit | 03677889f0ef42cdc534bf3b31265a054b20a354 (patch) | |
tree | 53caa0977a8afc5d0ee90e038ffd566e9e22451f /src/resolve/resolved-dns-scope.c | |
parent | 40f35786b0030f1f7c4b88828776ada1dd74d03e (diff) | |
download | systemd-03677889f0ef42cdc534bf3b31265a054b20a354.tar.gz |
list: declare iterator of LIST_FOREACH() in the loop
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 16c5e0094c..96978f8ac3 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -529,7 +529,6 @@ static DnsScopeMatch match_subnet_reverse_lookups( bool exclude_own) { union in_addr_union ia; - LinkAddress *a; int f, r; assert(s); @@ -587,7 +586,6 @@ DnsScopeMatch dns_scope_good_domain( DnsQuery *q) { DnsQuestion *question; - DnsSearchDomain *d; const char *domain; uint64_t flags; int ifindex; @@ -1082,7 +1080,7 @@ DnsTransaction *dns_scope_find_transaction( DnsResourceKey *key, uint64_t query_flags) { - DnsTransaction *first, *t; + DnsTransaction *first; assert(scope); assert(key); @@ -1398,8 +1396,7 @@ int dns_scope_announce(DnsScope *scope, bool goodbye) { _cleanup_(dns_answer_unrefp) DnsAnswer *answer = NULL; _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; _cleanup_set_free_ Set *types = NULL; - DnsTransaction *t; - DnsZoneItem *z, *i; + DnsZoneItem *z; unsigned size = 0; char *service_type; int r; @@ -1527,7 +1524,6 @@ int dns_scope_announce(DnsScope *scope, bool goodbye) { int dns_scope_add_dnssd_services(DnsScope *scope) { DnssdService *service; - DnssdTxtData *txt_data; int r; assert(scope); @@ -1561,7 +1557,6 @@ int dns_scope_add_dnssd_services(DnsScope *scope) { int dns_scope_remove_dnssd_services(DnsScope *scope) { _cleanup_(dns_resource_key_unrefp) DnsResourceKey *key = NULL; DnssdService *service; - DnssdTxtData *txt_data; int r; assert(scope); @@ -1586,7 +1581,7 @@ int dns_scope_remove_dnssd_services(DnsScope *scope) { } static bool dns_scope_has_route_only_domains(DnsScope *scope) { - DnsSearchDomain *domain, *first; + DnsSearchDomain *first; bool route_only = false; assert(scope); |