]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffer: introduce b_realign_if_empty()
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jun 2018 15:50:15 +0000 (17:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:39 +0000 (16:23 +0200)
commitf17f19f1a796ea9bbb4e31e7bdd0589f08a64e7e
tree40801d8b1648eeaf73b153f30b8eff8b32ca21ba
parenta04e40d5788fde49924f11a68e59fc33a4cb8dfe
MINOR: buffer: introduce b_realign_if_empty()

Many places deal with buffer realignment after data removal. The method
is always the same : if the buffer is empty, set its pointer to the origin.
Let's have a function for this so that we have less code to change with the
new API.
include/common/buf.h