libmicrohttpd2

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

commit 915f09d3f61c14f1201dbd5427d7dd91c152a8a2
parent c88133b5e473d3b00434ac45057d3537083f0a9c
Author: Evgeny Grin <k2k@drgrin.dev>
Date:   Sat,  3 May 2025 12:12:54 +0300

Fixed MHD_*_set_options() functions parameters

Diffstat:
Msrc/include/options-generator.c | 4++--
Msrc/mhd2/daemon_set_options.c | 4++--
Msrc/mhd2/response_set_options.c | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/include/options-generator.c b/src/include/options-generator.c @@ -1058,8 +1058,8 @@ TOP: "MHD_FN_PAR_NONNULL_ALL_ MHD_EXTERN_\n" "enum MHD_StatusCode\n" "MHD_%s_set_options (\n" - " struct MHD_%s *%s,\n" - " const struct MHD_%sOptionAndValue *options,\n" + " struct MHD_%s *MHD_RESTRICT %s,\n" + " const struct MHD_%sOptionAndValue *MHD_RESTRICT options,\n" " size_t options_max_num)\n" "{\n", category, diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c @@ -18,8 +18,8 @@ MHD_FN_PAR_NONNULL_ALL_ MHD_EXTERN_ enum MHD_StatusCode MHD_daemon_set_options ( - struct MHD_Daemon *daemon, - const struct MHD_DaemonOptionAndValue *options, + struct MHD_Daemon *MHD_RESTRICT daemon, + const struct MHD_DaemonOptionAndValue *MHD_RESTRICT options, size_t options_max_num) { struct DaemonOptions *restrict settings = daemon->settings; diff --git a/src/mhd2/response_set_options.c b/src/mhd2/response_set_options.c @@ -21,8 +21,8 @@ MHD_FN_PAR_NONNULL_ALL_ MHD_EXTERN_ enum MHD_StatusCode MHD_response_set_options ( - struct MHD_Response *response, - const struct MHD_ResponseOptionAndValue *options, + struct MHD_Response *MHD_RESTRICT response, + const struct MHD_ResponseOptionAndValue *MHD_RESTRICT options, size_t options_max_num) { struct ResponseOptions *restrict settings = response->settings;