]> git.ipfire.org Git - thirdparty/bind9.git/commit
Extract the do-while loop in dns__zone_updatesigs() into a separate function
authorMichał Kępień <michal@isc.org>
Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)
commit31cdf770a491e94bd2a124b798eaa7117dfe2208
tree825307af8f94c7a2f7ea3574c24ec6027a7a68c6
parent3c40aa004a7705a0bba17b8cc4573d901d23d518
Extract the do-while loop in dns__zone_updatesigs() into a separate function

The do-while loop in dns__zone_updatesigs() is hard to follow due to
heavy nesting and the 'tuple' variable also being used in the outer for
loop.  Add a comment to explain the purpose of the do-while loop.
Extract it into a separate function to decrease indentation and prevent
using 'tuple' in two different loops.
lib/dns/zone.c