commit 16e14b86de3d7f429efe9423f73c8b15bc42ea8f
parent 196db30ccc88359361c78a35a53fa37693d78286
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Wed, 17 Dec 2025 21:28:50 +0100
Fixed some clang warnings
Diffstat:
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mhd2/h2/h2_req_item_kinds.h b/src/mhd2/h2/h2_req_item_kinds.h
@@ -55,7 +55,7 @@
/**
* Request item kind
*/
-enum MHD_FIXED_FLAGS_ENUM_ mhd_H2RequestItemKind
+enum mhd_H2RequestItemKind
mhd_ENUM_BASE_T (uint_least8_t)
{
mhd_H2_RIK_HEADER = (1u << 0u),
diff --git a/src/mhd2/h2/h2_req_items_funcs.h b/src/mhd2/h2/h2_req_items_funcs.h
@@ -107,7 +107,6 @@ MHD_FN_PAR_INOUT_ (1) MHD_FN_PAR_OUT_ (2) MHD_FN_PAR_NONNULL_ALL_;
* #mhd_h2_mhd_h2_items_add_new_item_reserved() or
* #mhd_h2_items_cancel_new_item_buff().
* @param ib the pointer to items block data
- * @param[out] buff set to the available space in the buffer
* @return 'true' if succeed,
* 'false' if no space for a new item is available
*/
diff --git a/src/mhd2/stream_process_request.c b/src/mhd2/stream_process_request.c
@@ -2320,10 +2320,11 @@ enum mhd_ParseCookie
* Try to parse the cookies string even if it is not strictly formed
* as specified by RFC 6265.
*
- * @param str the string to parse, without leading whitespaces
* @param str_len the size of the @a str, not including mandatory
* zero-termination
- * @param connection the connection to add parsed cookies
+ * @param str the string to parse, without leading whitespaces
+ * @param strictness the protocol strictness
+ * @param s the stream to process
* @return #MHD_PARSE_COOKIE_OK for success, error code otherwise
*/
static MHD_FN_PAR_NONNULL_ALL_
diff --git a/src/mhd2/stream_process_request.h b/src/mhd2/stream_process_request.h
@@ -78,7 +78,7 @@ typedef bool
/**
* Parse HTTP method string.
* @param len the length of the @a mtd string
- * @param m the method string, does not need to be zero-terminated
+ * @param mtd the method string, does not need to be zero-terminated
* @return enum mhd_HTTP_Method value
*/
MHD_INTERNAL enum mhd_HTTP_Method