mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
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:
parent
ed08d6a9be
commit
27929fbfd7
@ -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);
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user