From 27929fbfd78356bd68ac8b209ac6a9ecfa8dca31 Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Fri, 25 Sep 2015 08:36:11 +0200 Subject: [PATCH] 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. --- include/proto/channel.h | 2 +- src/stream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/proto/channel.h b/include/proto/channel.h index b1c313ce6..733f9d200 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 5583d1d40..deb51e83c 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)