]> Kevux Git Server - fll/commitdiff
Cleanup: Minor syntax fixes and use the macro initializer.
authorKevin Day <kevin@kevux.org>
Fri, 16 Jun 2023 02:03:31 +0000 (21:03 -0500)
committerKevin Day <kevin@kevux.org>
Fri, 16 Jun 2023 02:03:31 +0000 (21:03 -0500)
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_extended_list_read/c/fss_extended_list_read.c
level_3/fss_payload_read/c/fss_payload_read.c

index c013d58b191090798438a8977d94649dae03a7c1..06a991fb435a748e9c3c9db3fe7e6cd5f67ec6cf 100644 (file)
@@ -310,9 +310,7 @@ extern "C" {
         }
 
         // This standard does not support multiple content groups.
-        if (select) {
-          return F_none;
-        }
+        if (select) return F_none;
       }
     }
 
index f98eeef19b78b903432d435185570b2dc27fe032..3c326facc67e131a26e601e909e177f89bf8080a 100644 (file)
@@ -150,7 +150,7 @@ extern "C" {
 
     {
       f_console_parameter_id_t ids[3] = { fss_extended_list_read_parameter_no_color_e, fss_extended_list_read_parameter_light_e, fss_extended_list_read_parameter_dark_e };
-      const f_console_parameter_ids_t choices = { ids, 3 };
+      const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 3);
 
       status = fll_program_parameter_process(*arguments, &main->parameters, choices, F_true, &main->context);
 
index 7e9e54e6fd757b9e72817e70668906bf11f6dfa9..51d3027d91324bf4b8ba48da70ec687228bee897 100644 (file)
@@ -169,7 +169,7 @@ extern "C" {
 
     {
       f_console_parameter_id_t ids[3] = { fss_payload_read_parameter_no_color_e, fss_payload_read_parameter_light_e, fss_payload_read_parameter_dark_e };
-      const f_console_parameter_ids_t choices = { ids, 3 };
+      const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 3);
 
       status = fll_program_parameter_process(*arguments, &main->parameters, choices, F_true, &main->context);