From 0699dc97cfa576bc133a1cbd3b0be3156e03e8ca Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 30 Mar 2022 19:19:26 -0500 Subject: [PATCH] Update: Use const for f_console_arguments_t and add envp. --- level_3/fss_basic_list_read/c/main.c | 2 +- level_3/fss_basic_read/c/main.c | 2 +- level_3/fss_extended_list_read/c/main.c | 2 +- level_3/fss_extended_read/c/main.c | 2 +- level_3/fss_payload_read/c/main.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/level_3/fss_basic_list_read/c/main.c b/level_3/fss_basic_list_read/c/main.c index 434d036..3a68d31 100644 --- a/level_3/fss_basic_list_read/c/main.c +++ b/level_3/fss_basic_list_read/c/main.c @@ -2,7 +2,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { - f_console_arguments_t arguments = { argc, argv }; + const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp); fll_program_data_t data = fll_program_data_t_initialize; f_console_parameter_t parameters[] = fss_basic_list_read_console_parameter_t_initialize; diff --git a/level_3/fss_basic_read/c/main.c b/level_3/fss_basic_read/c/main.c index 3c52bea..2703e70 100644 --- a/level_3/fss_basic_read/c/main.c +++ b/level_3/fss_basic_read/c/main.c @@ -2,7 +2,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { - f_console_arguments_t arguments = { argc, argv }; + const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp); fll_program_data_t data = fll_program_data_t_initialize; f_console_parameter_t parameters[] = fss_basic_read_console_parameter_t_initialize; diff --git a/level_3/fss_extended_list_read/c/main.c b/level_3/fss_extended_list_read/c/main.c index 61b2ee1..2a6234b 100644 --- a/level_3/fss_extended_list_read/c/main.c +++ b/level_3/fss_extended_list_read/c/main.c @@ -2,7 +2,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { - f_console_arguments_t arguments = { argc, argv }; + const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp); fll_program_data_t data = fll_program_data_t_initialize; f_console_parameter_t parameters[] = fss_extended_list_read_console_parameter_t_initialize; diff --git a/level_3/fss_extended_read/c/main.c b/level_3/fss_extended_read/c/main.c index bfcd024..93a1894 100644 --- a/level_3/fss_extended_read/c/main.c +++ b/level_3/fss_extended_read/c/main.c @@ -2,7 +2,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { - f_console_arguments_t arguments = { argc, argv }; + const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp); fll_program_data_t data = fll_program_data_t_initialize; f_console_parameter_t parameters[] = fss_extended_read_console_parameter_t_initialize; diff --git a/level_3/fss_payload_read/c/main.c b/level_3/fss_payload_read/c/main.c index db7a2da..fe6246c 100644 --- a/level_3/fss_payload_read/c/main.c +++ b/level_3/fss_payload_read/c/main.c @@ -2,7 +2,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { - f_console_arguments_t arguments = { argc, argv }; + const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp); fll_program_data_t data = fll_program_data_t_initialize; f_console_parameter_t parameters[] = fss_payload_read_console_parameter_t_initialize; -- 1.8.3.1