From: Christopher Faulet Date: Thu, 29 Feb 2024 12:52:35 +0000 (+0100) Subject: CLEANUP: mux-h2: Fix h2s_make_data() comment about the return value X-Git-Tag: v3.0-dev5~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69f15b9a4026731f38a532b6de730357790bbbde;p=thirdparty%2Fhaproxy.git CLEANUP: mux-h2: Fix h2s_make_data() comment about the return value 2 return values are specified in the h2s_make_data() function comment. Both are more or less equivalent but the later is probably more accurate. So, keep the right one and remove the other one. This patch should fix the issue #2175. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 1dd886c0de..609e1b5337 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -6224,10 +6224,9 @@ static size_t h2s_snd_bhdrs(struct h2s *h2s, struct htx *htx) } /* Try to send a DATA frame matching HTTP response present in HTX structure - * present in , for stream . Returns the number of bytes sent. The - * caller must check the stream's status to detect any error which might have - * happened subsequently to a successful send. Returns the number of data bytes - * consumed, or zero if nothing done. + * present in , for stream . The caller must check the stream's status + * to detect any error which might have happened subsequently to a successful + * send. Returns the number of data bytes consumed, or zero if nothing done. */ static size_t h2s_make_data(struct h2s *h2s, struct buffer *buf, size_t count) {