]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stream: use const filters in the dump function
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Sep 2023 06:43:51 +0000 (08:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Sep 2023 07:20:27 +0000 (09:20 +0200)
commit1a01ee47403ca5c8684f1ba33b2f679716b607ba
tree543e14df62d5d8480f4f31a5730bfe5b37ccf1b7
parent77ecb3146a168f31d9791342c6efdade6ab436f5
CLEANUP: stream: use const filters in the dump function

The strm_dump_to_buffer() function requires a variable stream only
for a few functions in it that do not take a const. strm_flt() is
one of them (and for good reasons since most call places want to
update filters). Here we know we won't modify the filter nor the
stream so let's directly access the strm_flt in the stream and assign
it to a const filter. This will also catch any future accidental change.
src/stream.c