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.
This commit is contained in:
Thierry FOURNIER 2015-09-25 08:36:11 +02:00 committed by Willy Tarreau
parent ed08d6a9be
commit 27929fbfd7
2 changed files with 2 additions and 2 deletions

View 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);

View 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)