mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
GENERATED: fixed options addressing
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user