From: Kevin Day Date: Mon, 16 Jan 2023 21:19:35 +0000 (-0600) Subject: Cleanup: Use 0 instead of F_false in firewall initialization. X-Git-Tag: 0.6.4~98 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=08791c72e640cfe426f218a8690d783b57c64351;p=fll Cleanup: Use 0 instead of F_false in firewall initialization. Mathematically, the F_false and 0 are synonymous. Semantically, the F_false represents a boolean and 0 represents a digit. Using F_false here has incorrect semantic meaning. --- diff --git a/level_3/firewall/c/common.h b/level_3/firewall/c/common.h index 57dc762..708e1fe 100644 --- a/level_3/firewall/c/common.h +++ b/level_3/firewall/c/common.h @@ -394,11 +394,11 @@ extern "C" { macro_f_console_parameter_t_initialize(f_console_standard_short_verbose_s.string, f_console_standard_long_verbose_s.string, 0, 0, f_console_type_inverse_e), \ macro_f_console_parameter_t_initialize(f_console_standard_short_debug_s.string, f_console_standard_long_debug_s.string, 0, 0, f_console_type_inverse_e), \ macro_f_console_parameter_t_initialize(f_console_standard_short_version_s.string, f_console_standard_long_version_s.string, 0, 0, f_console_type_inverse_e), \ - macro_f_console_parameter_t_initialize(0, 0, firewall_command_start_s.string, F_false, f_console_type_other_e), \ - macro_f_console_parameter_t_initialize(0, 0, firewall_command_stop_s.string, F_false, f_console_type_other_e), \ - macro_f_console_parameter_t_initialize(0, 0, firewall_command_restart_s.string, F_false, f_console_type_other_e), \ - macro_f_console_parameter_t_initialize(0, 0, firewall_command_lock_s.string, F_false, f_console_type_other_e), \ - macro_f_console_parameter_t_initialize(0, 0, firewall_command_show_s.string, F_false, f_console_type_other_e), \ + macro_f_console_parameter_t_initialize(0, 0, firewall_command_start_s.string, 0, f_console_type_other_e), \ + macro_f_console_parameter_t_initialize(0, 0, firewall_command_stop_s.string, 0, f_console_type_other_e), \ + macro_f_console_parameter_t_initialize(0, 0, firewall_command_restart_s.string, 0, f_console_type_other_e), \ + macro_f_console_parameter_t_initialize(0, 0, firewall_command_lock_s.string, 0, f_console_type_other_e), \ + macro_f_console_parameter_t_initialize(0, 0, firewall_command_show_s.string, 0, f_console_type_other_e), \ } #define firewall_total_parameters_d 15