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)