gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]