]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-h1: Remove useless __maybe_unused statement
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:59:23 +0000 (13:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:59:24 +0000 (13:59 +0200)
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

index cab65a97bfd2545acab4651f3b6f7bf240007ca4..1bee1fa01e9876a5342897aa5be170025b2d630f 100644 (file)
@@ -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
  * <buf>. 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;