mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 04:43:37 -04:00
CLEANUP: stream: make strm_dump_to_buffer() take a const stream
Now that we don't need a variable anymore, let's pass a const stream. It will void any doubt about what can happen to the stream when the function is called from inspection points (show sess etc).
This commit is contained in:
parent
1a01ee4740
commit
6bc07103f8
1 changed files with 1 additions and 1 deletions
|
|
@ -3243,7 +3243,7 @@ struct show_sess_ctx {
|
|||
* responsible for ensuring that enough room remains in the buffer to dump a
|
||||
* complete stream at once.
|
||||
*/
|
||||
static void strm_dump_to_buffer(struct stream *strm, uint32_t anon_key)
|
||||
static void strm_dump_to_buffer(const struct stream *strm, uint32_t anon_key)
|
||||
{
|
||||
struct stconn *scf, *scb;
|
||||
struct tm tm;
|
||||
|
|
|
|||
Loading…
Reference in a new issue