]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor to use list-like macro for message sections
authoralessio <alessio@isc.org>
Wed, 19 Mar 2025 19:29:17 +0000 (20:29 +0100)
committerxoranth <xoranth@xoranths-MacBook-Air.local>
Thu, 27 Mar 2025 02:09:46 +0000 (03:09 +0100)
commit2f27d664502a2e70bda9ddd9923444dfc7ff7d94
treed7d7aa67d8b2bb3a945f7a3cfe1831ed39961270
parent52a04a368b7a79ead08fbc2849ea3cfd876ea53b
Refactor to use list-like macro for message sections

In the code base it is very common to iterate over all names in a message
section and all rdatasets for each name, but various idioms are used for
iteration.

This commit standardizes them as much as possible to a single idiom,
using the macro MSG_SECTION_FOREACH, similar to the existing
ISC_LIST_FOREACH.
22 files changed:
.clang-format
bin/delv/delv.c
bin/dig/dig.c
bin/dig/dighost.c
bin/dig/host.c
bin/dig/nslookup.c
bin/nsupdate/nsupdate.c
bin/plugins/filter-a.c
bin/plugins/filter-aaaa.c
bin/tools/mdig.c
lib/dns/client.c
lib/dns/include/dns/message.h
lib/dns/message.c
lib/dns/ncache.c
lib/dns/resolver.c
lib/dns/tkey.c
lib/dns/xfrin.c
lib/dns/zone.c
lib/ns/notify.c
lib/ns/query.c
lib/ns/update.c
lib/ns/xfrout.c