]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: channel: rename buffer_reserved() to channel_reserved()
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Jan 2015 19:16:52 +0000 (20:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Jan 2015 19:21:12 +0000 (20:21 +0100)
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

index 28ca7c61a2a2dc88139ed8be650bec7c1666ef52..1e786f37b69fe9d5bbff43e70dc9392faf7cfeb9 100644 (file)
@@ -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