]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: buf: make b_ncat() take a const for the source
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Feb 2024 18:06:41 +0000 (19:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Mar 2024 10:50:34 +0000 (11:50 +0100)
commit93a0fb74f47ca907aaccf634c0b63190964b17a8
tree79d0dac0bda956e7130159aafc74294bc6505104
parent0a0041d1955a7715024a78db93b56c1a58517789
BUILD: buf: make b_ncat() take a const for the source

In 2.7 with commit 35df34223b ("MINOR: buffers: split b_force_xfer() into
b_cpy() and b_force_xfer()"), b_ncat() was extracted from b_force_xfer()
but kept its source variable instead of constant, making it unusable for
calls from a const source. Let's just fix it.
include/haproxy/buf.h