CLEANUP: mini-clist: simplify nested do { while(1) {} } while (0)
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Feb 2020 09:17:52 +0000 (10:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Feb 2020 09:27:04 +0000 (10:27 +0100)
commit160ad9e38ac1c9c4aafc0bc0d21d98e3e8ec79ee
tree96372245eeb202e9299f628755064fce2f12ac47
parent157788c7b194eda5d0c825f4704081ed2e7efbd9
CLEANUP: mini-clist: simplify nested do { while(1) {} } while (0)

While looking for other occurrences of do { continue; } while (0) I
found these few leftovers in mini-clist where an outer loop was made
around "do { } while (0)" then another loop was placed inside just to
handle the continue. Let's clean this up by just removing the outer
one. Most of the patch is only the inner part of the loop that is
reindented. It was verified that the resulting code is the same.
include/common/mini-clist.h