From: Kevin Day Date: Sat, 17 Feb 2024 16:26:54 +0000 (-0600) Subject: Bugfix: The debug mode is not working in firewall. X-Git-Tag: 0.6.9~26 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=52662f2a82ad7f3e20d57388325065366bde8b88;p=fll Bugfix: The debug mode is not working in firewall. The debug verbositity mode is at the 5th position in the array and is not being used because the used length is set to 4 instead of 5. --- diff --git a/level_3/firewall/c/firewall.c b/level_3/firewall/c/firewall.c index 7ce96cf..fcf0537 100644 --- a/level_3/firewall/c/firewall.c +++ b/level_3/firewall/c/firewall.c @@ -109,7 +109,7 @@ extern "C" { // Identify priority of verbosity related parameters. { f_console_parameter_id_t ids[5] = { firewall_parameter_verbosity_quiet_e, firewall_parameter_verbosity_error_e, firewall_parameter_verbosity_normal_e, firewall_parameter_verbosity_verbose_e, firewall_parameter_verbosity_debug_e }; - const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); + const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 5); f_console_parameter_id_t choice = 0; status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);