]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-cache.c
resolved: replace DNS_ANSWER_FOREACH_FULL() iterator macro with DNS_ANSWER_FOREACH_ITEM()
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Nov 2020 19:51:15 +0000 (20:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 16:52:49 +0000 (17:52 +0100)
commit9c5fcb8ac7afb9c958a222760ab6edb529ba49a5
tree8ae1693b75fcd5c082eb33f3cfef618a6af28043
parentb17b6a74015de4a56f7fc5fd786e88fdd376f356
resolved: replace DNS_ANSWER_FOREACH_FULL() iterator macro with DNS_ANSWER_FOREACH_ITEM()

The more fields DnsAnswerItem gains the less sense it makes to pass
every field of it as separate parameter to an iterator macro. Let's
simplify things here, in preparation of adding more fields to the
structure later on: let's just return the structure itself in the loop,
rather than the individual fields.
src/resolve/resolved-dns-answer.c
src/resolve/resolved-dns-answer.h
src/resolve/resolved-dns-cache.c