From: Thierry FOURNIER Date: Fri, 25 Sep 2015 06:36:11 +0000 (+0200) Subject: MINOR: channel: rename function chn_sess to chn_strm X-Git-Tag: v1.6-dev6~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27929fbfd78356bd68ac8b209ac6a9ecfa8dca31;p=thirdparty%2Fhaproxy.git MINOR: channel: rename function chn_sess to chn_strm The name of the function chn_sess is no longer appropriate. This patch renames it to chn_strm. --- diff --git a/include/proto/channel.h b/include/proto/channel.h index b1c313ce6e..733f9d200e 100644 --- a/include/proto/channel.h +++ b/include/proto/channel.h @@ -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); diff --git a/src/stream.c b/src/stream.c index 5583d1d40e..deb51e83cc 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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)