gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 193/335: GENERATED: add missed options


From: gnunet
Subject: [libmicrohttpd] 193/335: GENERATED: add missed options
Date: Sat, 27 Jul 2024 22:01:29 +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 1757738739b36bf789ad17f4a4079a74ca20ff3a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Jun 8 14:22:51 2024 +0200

    GENERATED: add missed options
---
 src/mhd2/daemon_set_options.c   | 7 ++++++-
 src/mhd2/response_set_options.c | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c
index f0641656..18369922 100644
--- a/src/mhd2/daemon_set_options.c
+++ b/src/mhd2/daemon_set_options.c
@@ -31,6 +31,8 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
   {
     const struct MHD_DaemonOptionAndValue *const option = options + i;
     switch (option->opt) {
+    case MHD_D_O_END:
+      return MHD_SC_OK;
     case MHD_D_OPTION_WORK_MODE:
       daemon->settings.work_mode = option->val.work_mode;
       continue;
@@ -165,8 +167,11 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
     case MHD_D_OPTION_DAUTH_DEF_MAX_NC:
       daemon->settings.dauth_def_max_nc = option->val.dauth_def_max_nc;
       continue;
+    case MHD_D_O_SENTINEL:
+    default:
+      break;
     }
-    return MHD_SC_OPTION_UNSUPPORTED;
+    return MHD_SC_OPTION_UNKNOWN;
   }
   return MHD_SC_OK;
 }
diff --git a/src/mhd2/response_set_options.c b/src/mhd2/response_set_options.c
index 5895d981..cb34ff36 100644
--- a/src/mhd2/response_set_options.c
+++ b/src/mhd2/response_set_options.c
@@ -30,6 +30,8 @@ MHD_response_set_options (struct MHD_Response *response,
   {
     const struct MHD_ResponseOptionAndValue *const option = options + i;
     switch (option->opt) {
+    case MHD_R_O_END:
+      return MHD_SC_OK;
     case MHD_R_OPTION_REUSABLE:
       response->settings.reusable = option->val.reusable;
       continue;
@@ -55,8 +57,11 @@ MHD_response_set_options (struct MHD_Response *response,
       response->settings.termination_callback.v_term_cb = 
option->val.termination_callback.v_term_cb;
       response->settings.termination_callback.v_term_cb_cls = 
option->val.termination_callback.v_term_cb_cls;
       continue;
+    case MHD_R_O_SENTINEL:
+    default:
+      break;
     }
-    return MHD_SC_OPTION_UNSUPPORTED;
+    return MHD_SC_OPTION_UNKNOWN;
   }
   return MHD_SC_OK;
 }

-- 
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]