]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: resolvers: replace all LIST_DELETE with LIST_DEL_INIT
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Oct 2021 20:01:36 +0000 (22:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Oct 2021 15:54:14 +0000 (17:54 +0200)
commitaae7320b0dd9a379792d7cbe3304b23bdb045740
tree7e9402566102891dbd9a840e72e17ba9fc6c3bb7
parent239675e4a955b219e915fa11a1a03c7aacc13ccd
CLEANUP: resolvers: replace all LIST_DELETE with LIST_DEL_INIT

The code as it is uses crossed lists between many elements, and at
many places the code relies on list iterators or emptiness checks,
which does not work with only LIST_DELETE. Further, it is quite
difficult to place debugging code and checks in the current situation,
and gdb is helpless.

This code replaces all LIST_DELETE calls with LIST_DEL_INIT so that
it becomes possible to trust the lists.
src/resolvers.c