]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: channel: rename function chn_sess to chn_strm
authorThierry FOURNIER <tfournier@arpalert.org>
Fri, 25 Sep 2015 06:36:11 +0000 (08:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 21:27:33 +0000 (23:27 +0200)
The name of the function chn_sess is no longer appropriate.
This patch renames it to chn_strm.

include/proto/channel.h
src/stream.c

index b1c313ce6ef5101a4faa8c5a0748857ff7dfd4a0..733f9d200e4c7ddfe635ec67402c078827790d14 100644 (file)
@@ -55,7 +55,7 @@ int bo_getblk_nc(struct channel *chn, char **blk1, int *len1, char **blk2, int *
 
 
 /* returns a pointer to the stream the channel belongs to */
-static inline struct stream *chn_sess(const struct channel *chn)
+static inline struct stream *chn_strm(const struct channel *chn)
 {
        if (chn->flags & CF_ISRESP)
                return LIST_ELEM(chn, struct stream *, res);
index 5583d1d40e6090b1a60bd893a2670f401e7ba9cd..deb51e83ccd5189cb1ac47610a58914e5e4292df 100644 (file)
@@ -365,7 +365,7 @@ int stream_alloc_recv_buffer(struct channel *chn)
        if (!(chn->flags & CF_ISRESP))
                margin = global.tune.reserved_bufs;
 
-       s = chn_sess(chn);
+       s = chn_strm(chn);
 
        b = b_alloc_margin(&chn->buf, margin);
        if (b)