mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 00:27:54 -04:00
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.
This commit is contained in:
parent
75806f2fe8
commit
a150cfcfec
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
/* Emit the chunksize followed by a CRLF after the data of the buffer
|
||||||
* <buf>. Returns 0 on error.
|
* <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 tmp[10];
|
||||||
char *beg, *end;
|
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
|
* 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.
|
* 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;
|
char *head;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue