From 69f15b9a4026731f38a532b6de730357790bbbde Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 29 Feb 2024 13:52:35 +0100 Subject: [PATCH] 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. --- src/mux_h2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 1dd886c0d..609e1b533 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) {