libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 96a8774f397c6e95a4b754f33f6bd322b3ef1ef2
parent 1100fc7d314f1aa1938ff84f3dd0315e53cc1529
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sun, 21 Dec 2025 17:34:29 +0100

mhd_const.c: fixed missing function attributes

Diffstat:
Msrc/mhd2/mhd_const.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mhd2/mhd_const.c b/src/mhd2/mhd_const.c @@ -2,6 +2,7 @@ /* This file is part of GNU libmicrohttpd. Copyright (C) 2025 Christian Grothoff + Copyright (C) 2025 Evgeny Grin (Karlson2k) GNU libmicrohttpd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -39,7 +40,7 @@ /** * @file src/mhd2/mhd_const.c * @brief convenience functions returning constant string values - * @author Christian Grothoff + * @author Christian Grothoff, Karlson2k (Evgeny Grin) */ #include "mhd_sys_options.h" @@ -49,7 +50,7 @@ #include "sys_null_macro.h" #include "mhd_public_api.h" -MHD_EXTERN_ const struct MHD_String * +MHD_EXTERN_ MHD_FN_CONST_ const struct MHD_String * MHD_protocol_version_to_string (enum MHD_HTTP_ProtocolVersion pv) { static const struct MHD_String results[] = { @@ -67,7 +68,7 @@ MHD_protocol_version_to_string (enum MHD_HTTP_ProtocolVersion pv) } -MHD_EXTERN_ const struct MHD_String * +MHD_EXTERN_ MHD_FN_CONST_ const struct MHD_String * MHD_http_method_to_string (enum MHD_HTTP_Method method) { static const struct MHD_String results[] = {