commit f4526f1299d4e48f03d0c864afc8f27ceba510fb
parent 9156d96596c070365e938e817da2ebe7943409e3
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Thu, 24 Apr 2025 19:03:51 +0200
More fixes for use of reserved identifiers
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mhd2/stream_process_request.c b/src/mhd2/stream_process_request.c
@@ -2230,7 +2230,7 @@ mhd_stream_get_request_headers (struct MHD_Connection *restrict c,
/**
* Cookie parsing result
*/
-enum _MHD_ParseCookie
+enum mhd_ParseCookie
{
MHD_PARSE_COOKIE_OK_LAX = 2 /**< Cookies parsed, but workarounds used */
,
@@ -2256,7 +2256,7 @@ enum _MHD_ParseCookie
*/
static MHD_FN_PAR_NONNULL_ALL_
MHD_FN_PAR_CSTR_ (2)
-MHD_FN_PAR_INOUT_SIZE_ (2,1) enum _MHD_ParseCookie
+MHD_FN_PAR_INOUT_SIZE_ (2,1) enum mhd_ParseCookie
parse_cookies_string (const size_t str_len,
char *restrict str,
struct MHD_Connection *restrict connection)
@@ -2465,13 +2465,13 @@ parse_cookies_string (const size_t str_len,
* @param cookie_val the value of the "Cookie:" header
* @return #MHD_PARSE_COOKIE_OK for success, error code otherwise
*/
-static enum _MHD_ParseCookie
+static enum mhd_ParseCookie
parse_cookie_header (struct MHD_Connection *restrict connection,
struct MHD_StringNullable *restrict cookie_val)
{
char *cpy;
size_t i;
- enum _MHD_ParseCookie parse_res;
+ enum mhd_ParseCookie parse_res;
struct mhd_RequestField *const saved_tail =
connection->rq.fields.last; // FIXME: a better way?
const bool allow_partially_correct_cookie =