From a150cfcfec7c5bb3b6ddb01a87df067e950ef97b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 20 Jun 2023 13:59:23 +0200 Subject: [PATCH] CLEANUP: mux-h1: Remove useless __maybe_unused statement h1_append_chunk_size() and h1_prepend_chunk_crlf() functions were marked as possibly unused to be able to add them in standalone commits. Now these functions are used, the __maybe_unused statement can be removed. --- src/mux_h1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index cab65a97bf..1bee1fa01e 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1423,7 +1423,7 @@ static void h1_prepend_chunk_size(struct buffer *buf, size_t chksz) /* Emit the chunksize followed by a CRLF after the data of the buffer * . Returns 0 on error. */ -static __maybe_unused int h1_append_chunk_size(struct buffer *buf, size_t chksz) +static int h1_append_chunk_size(struct buffer *buf, size_t chksz) { char tmp[10]; char *beg, *end; @@ -1442,7 +1442,7 @@ static __maybe_unused int h1_append_chunk_size(struct buffer *buf, size_t chksz) * starts with the byte before the buffer's head. The caller is responsible for * ensuring there is enough room left before the buffer's head for the string. */ -static __maybe_unused void h1_prepend_chunk_crlf(struct buffer *buf) +static void h1_prepend_chunk_crlf(struct buffer *buf) { char *head; -- 2.47.3