]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor getpred code
authorMatthijs Mekking <matthijs@isc.org>
Thu, 7 Dec 2023 15:55:37 +0000 (16:55 +0100)
committerEvan Hunt <each@isc.org>
Mon, 11 Dec 2023 21:01:29 +0000 (21:01 +0000)
commit21867f200a12f56ebf0d8f1f0863b44dafcbdd78
tree13e77f7b55e6fcbb8c18ac050b36b3846fd6dcf9
parentab8a0c4b5a03857c3701dda47a924fde775a23ec
Refactor getpred code

Move the code to find the predecessor into one function, as it is shares
quite some similarities: In both cases we first need to find the
immediate predecessor/successor, then we need to find the immediate
predecessor if the iterator is not already pointing at it.
lib/dns/qp.c