From c5cc042c690c5ce3ce14ba982570fcbc7d6d2e67 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 15 Jun 2023 21:03:31 -0500 Subject: [PATCH] Cleanup: Minor syntax fixes and use the macro initializer. --- level_3/fss_embedded_list_read/c/private-read.c | 4 +--- level_3/fss_extended_list_read/c/fss_extended_list_read.c | 2 +- level_3/fss_payload_read/c/fss_payload_read.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) 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); -- 1.8.3.1