mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
MINOR: channel: rename buffer_reserved() to channel_reserved()
This applies to the channel, not the buffer, so let's fix this name. Warning, the function's name happens to be the same as the old one which was mistakenly used during 1.5.
This commit is contained in:
parent
3889fffe92
commit
a4178192b9
@ -300,7 +300,7 @@ static inline void channel_dont_read(struct channel *chn)
|
||||
* any chn->size. Special care is taken to avoid any possible integer
|
||||
* overflow in the operations.
|
||||
*/
|
||||
static inline int buffer_reserved(const struct channel *chn)
|
||||
static inline int channel_reserved(const struct channel *chn)
|
||||
{
|
||||
int reserved;
|
||||
|
||||
@ -316,7 +316,7 @@ static inline int buffer_reserved(const struct channel *chn)
|
||||
*/
|
||||
static inline int buffer_max_len(const struct channel *chn)
|
||||
{
|
||||
return chn->buf->size - buffer_reserved(chn);
|
||||
return chn->buf->size - channel_reserved(chn);
|
||||
}
|
||||
|
||||
/* Returns the amount of space available at the input of the buffer, taking the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user