]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffers: split b_force_xfer() into b_cpy() and b_force_xfer()
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 10 Oct 2022 15:27:47 +0000 (17:27 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 13 Oct 2022 14:45:28 +0000 (16:45 +0200)
commit35df34223b5d45db8b498def39bd720a8d3f810e
tree66f7e3fb3fcd57b12ccc95b97b9f47dcced605ec
parent9e4ead30953f964cf2f9f6738e432a267d857cb7
MINOR: buffers: split b_force_xfer() into b_cpy() and b_force_xfer()

Split the b_force_xfer() into b_ncat() and b_force_xfer().

The previous b_force_xfer() implementation was basically a copy with a
b_del on the src buffer. Keep this implementation to make b_ncat(), and
just call b_ncat() + b_del() into b_force_xfer().
include/haproxy/buf.h