From a4178192b9ea750a6cbd05c965642847219cec89 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 14 Jan 2015 20:16:52 +0100 Subject: [PATCH] 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. --- include/proto/channel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/proto/channel.h b/include/proto/channel.h index 28ca7c61a..1e786f37b 100644 --- a/include/proto/channel.h +++ b/include/proto/channel.h @@ -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