diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-09-28 11:44:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-09-28 22:51:36 +0200 |
commit | 63fe457c1b4903d85d02216c8019ae8445e2b3dd (patch) | |
tree | b9bd9f84db8fd044ae2da25a6d3cac3a32b1210e /src/resolve | |
parent | test: fix a copy-paste error (diff) | |
download | systemd-63fe457c1b4903d85d02216c8019ae8445e2b3dd.tar.xz systemd-63fe457c1b4903d85d02216c8019ae8445e2b3dd.zip |
resolved: fix parameter reuse in DNS_ANSWER_FOREACH_ITEM() iterator macro
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-answer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-answer.h b/src/resolve/resolved-dns-answer.h index a249f06273..93afea32d5 100644 --- a/src/resolve/resolved-dns-answer.h +++ b/src/resolve/resolved-dns-answer.h @@ -128,10 +128,10 @@ typedef struct DnsAnswerIterator { #define DNS_ANSWER_FOREACH_FLAGS(rr, flags, a) _DNS_ANSWER_FOREACH_FLAGS(rr, flags, a, UNIQ_T(i, UNIQ)) -#define _DNS_ANSWER_FOREACH_ITEM(item, a, i) \ +#define _DNS_ANSWER_FOREACH_ITEM(it, a, i) \ for (DnsAnswerIterator i = { .iterator = ITERATOR_FIRST, .answer = (a) }; \ i.answer && \ ordered_set_iterate(i.answer->items, &i.iterator, (void**) &(i.item)) && \ - (item = i.item, true); ) + (it = i.item, true); ) #define DNS_ANSWER_FOREACH_ITEM(item, a) _DNS_ANSWER_FOREACH_ITEM(item, a, UNIQ_T(i, UNIQ)) |