CLEANUP: ring: further simplify the write loop
authorWilly Tarreau <w@1wt.eu>
Sun, 17 Mar 2024 11:19:29 +0000 (12:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commite6fc167aecab1eec051c4e27505f38439c4dfcea
treedb26ee0c6bf9c4a0a212f922b5ab03867ef4f8af
parent4b984c5baafbbeb0570ca7046be0143cb2c844fc
CLEANUP: ring: further simplify the write loop

The loop was cleaned up a little bit so that the inner loops are more
readable and that the ifdef'd parts are whole blocks and not just an
"if" condition. A few conditions were adjusted to benefit from "break"
and "continue".
src/ring.c