]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbuf: refactor ncb_advance()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 17 May 2022 16:52:39 +0000 (18:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 May 2022 13:30:13 +0000 (15:30 +0200)
commitca21c768b9a096dcedaac3f601de13fc4f320b97
treec39be5e8fc8ea9d77d7dde0eda9a19c317b96614
parentf6dbdc14448cbba57d62b51a7762d2d1b8024841
MINOR: ncbuf: refactor ncb_advance()

First adjusted some typos in comments inside the function. Second,
change the naming of some variable to reduce confusion.

A special case has been inserted when advance is done inside a GAP block
and this block is the last of the buffer. In this case, the whole buffer
will be emptied, equivalent to a ncb_init() operation.
include/haproxy/ncbuf.h
src/ncbuf.c