From: Kevin Day Date: Fri, 16 Jun 2023 02:03:31 +0000 (-0500) Subject: Cleanup: Minor syntax fixes and use the macro initializer. X-Git-Tag: 0.6.6~23 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=c5cc042c690c5ce3ce14ba982570fcbc7d6d2e67;p=fll Cleanup: Minor syntax fixes and use the macro initializer. --- diff --git a/level_3/fss_embedded_list_read/c/private-read.c b/level_3/fss_embedded_list_read/c/private-read.c index c013d58..06a991f 100644 --- a/level_3/fss_embedded_list_read/c/private-read.c +++ b/level_3/fss_embedded_list_read/c/private-read.c @@ -310,9 +310,7 @@ extern "C" { } // This standard does not support multiple content groups. - if (select) { - return F_none; - } + if (select) return F_none; } } diff --git a/level_3/fss_extended_list_read/c/fss_extended_list_read.c b/level_3/fss_extended_list_read/c/fss_extended_list_read.c index f98eeef..3c326fa 100644 --- a/level_3/fss_extended_list_read/c/fss_extended_list_read.c +++ b/level_3/fss_extended_list_read/c/fss_extended_list_read.c @@ -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); diff --git a/level_3/fss_payload_read/c/fss_payload_read.c b/level_3/fss_payload_read/c/fss_payload_read.c index 7e9e54e..51d3027 100644 --- a/level_3/fss_payload_read/c/fss_payload_read.c +++ b/level_3/fss_payload_read/c/fss_payload_read.c @@ -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);