commit | f17f19f1a796ea9bbb4e31e7bdd0589f08a64e7e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jun 15 17:50:15 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jul 19 16:23:39 2018 +0200 |
tree | 40801d8b1648eeaf73b153f30b8eff8b32ca21ba | |
parent | a04e40d5788fde49924f11a68e59fc33a4cb8dfe [diff] |
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.