]> Kevux Git Server - fll/commitdiff
Cleanup: Use 0 instead of F_false in firewall initialization.
authorKevin Day <thekevinday@gmail.com>
Mon, 16 Jan 2023 21:19:35 +0000 (15:19 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 16 Jan 2023 21:19:35 +0000 (15:19 -0600)
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.

level_3/firewall/c/common.h

index 57dc7628f1ee70d9636884eb7d34c595edc9fb03..708e1fe8a3a76c0691ef28a87789137d2356b94a 100644 (file)
@@ -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