]> git.ipfire.org Git - thirdparty/bind9.git/commit
implicitly declare list elements in ISC_LIST_FOREACH macros
authorEvan Hunt <each@isc.org>
Thu, 20 Mar 2025 22:46:35 +0000 (15:46 -0700)
committerEvan Hunt <each@isc.org>
Mon, 31 Mar 2025 20:37:47 +0000 (13:37 -0700)
commit5cff8f9017dc025bb5a1922e9b4a1af1b3a5c8d2
tree7a53fb3c651a55cac21e6e96b17cbbc683261fe4
parent6bbdb1980eeda8848ea769a94de4d02fc9b978d5
implicitly declare list elements in ISC_LIST_FOREACH macros

ISC_LIST_FOREACH and related macros now use 'typeof(list.head)' to
declare the list elements automatically; the caller no longer needs
to do so.

ISC_LIST_FOREACH_SAFE also now implicitly declares its own 'next'
pointer, so it only needs three parameters instead of four.
23 files changed:
bin/delv/delv.c
bin/dig/dig.c
bin/dig/dighost.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/acl.c
lib/dns/client.c
lib/dns/include/dns/message.h
lib/dns/message.c
lib/dns/ncache.c
lib/dns/request.c
lib/dns/resolver.c
lib/dns/tkey.c
lib/dns/xfrin.c
lib/dns/zone.c
lib/isc/httpd.c
lib/isc/include/isc/list.h
lib/isc/log.c
lib/ns/query.c
lib/ns/xfrout.c