[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 191/335: GENERATED: fixed options addressing
From: |
gnunet |
Subject: |
[libmicrohttpd] 191/335: GENERATED: fixed options addressing |
Date: |
Sat, 27 Jul 2024 22:01:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit e4dd181aa59ceb8c1c61325b890c5af911d72393
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Jun 8 14:20:24 2024 +0200
GENERATED: fixed options addressing
---
src/mhd2/daemon_set_options.c | 3 ++-
src/mhd2/response_set_options.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c
index b3182652..356db9e7 100644
--- a/src/mhd2/daemon_set_options.c
+++ b/src/mhd2/daemon_set_options.c
@@ -26,7 +26,8 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
for (i=0;i<options_max_num;i++)
{
- switch (options[i].opt) {
+ const struct MHD_DaemonOptionAndValue *const option = options + i;
+ switch (option->opt) {
case MHD_D_OPTION_WORK_MODE:
daemon->settings.work_mode = option->val.work_mode;
continue;
diff --git a/src/mhd2/response_set_options.c b/src/mhd2/response_set_options.c
index 5f42ae8e..89ad9e28 100644
--- a/src/mhd2/response_set_options.c
+++ b/src/mhd2/response_set_options.c
@@ -25,7 +25,8 @@ MHD_response_set_options (struct MHD_Response *response,
for (i=0;i<options_max_num;i++)
{
- switch (options[i].opt) {
+ const struct MHD_ResponseOptionAndValue *const option = options + i;
+ switch (option->opt) {
case MHD_R_OPTION_REUSABLE:
response->settings.reusable = option->val.reusable;
continue;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 198/335: This API is even more *TERRIBLE*, (continued)
- [libmicrohttpd] 198/335: This API is even more *TERRIBLE*, gnunet, 2024/07/27
- [libmicrohttpd] 201/335: configure: added detection of the binary format of NULL pointers, gnunet, 2024/07/27
- [libmicrohttpd] 183/335: configure: fixed configuration summary, gnunet, 2024/07/27
- [libmicrohttpd] 197/335: GENERATED: use logger directly, gnunet, 2024/07/27
- [libmicrohttpd] 204/335: configure: improved checks for function name magic-macros, gnunet, 2024/07/27
- [libmicrohttpd] 202/335: configure: added detection of variadic macros support, gnunet, 2024/07/27
- [libmicrohttpd] 190/335: GENERATED: C89/C99, gnunet, 2024/07/27
- [libmicrohttpd] 208/335: .gitignore: updated, gnunet, 2024/07/27
- [libmicrohttpd] 210/335: configure: improved tests for non-standard platforms, gnunet, 2024/07/27
- [libmicrohttpd] 193/335: GENERATED: add missed options, gnunet, 2024/07/27
- [libmicrohttpd] 191/335: GENERATED: fixed options addressing,
gnunet <=
- [libmicrohttpd] 211/335: configure: check for AF_UNIX headers, gnunet, 2024/07/27
- [libmicrohttpd] 200/335: configure: rewritten checks for inline and force inline keywords, gnunet, 2024/07/27
- [libmicrohttpd] 199/335: configure: added separate controls for MHD log and HTTP auto replies, gnunet, 2024/07/27
- [libmicrohttpd] 213/335: configure: check for socklen_t and substitute with a replacement if not available, gnunet, 2024/07/27
- [libmicrohttpd] 194/335: GENERATED: fixed macro names instead of enum values, gnunet, 2024/07/27
- [libmicrohttpd] 206/335: configure: renamed _MHD_NORETURN -> MHD_NORETURN_, gnunet, 2024/07/27
- [libmicrohttpd] 219/335: configure: improved testing for supported function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 218/335: configure: added checks for sokets-related symbols declarations, gnunet, 2024/07/27
- [libmicrohttpd] 222/335: this_API_is_TERRIBLE: even more, gnunet, 2024/07/27
- [libmicrohttpd] 189/335: GENERATED: use correct function attributes, gnunet, 2024/07/27