summaryrefslogtreecommitdiffstats
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-09-28 11:44:18 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-28 22:51:36 +0200
commit63fe457c1b4903d85d02216c8019ae8445e2b3dd (patch)
treeb9bd9f84db8fd044ae2da25a6d3cac3a32b1210e /src/resolve
parenttest: fix a copy-paste error (diff)
downloadsystemd-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.h4
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))