From: Kevin Day Date: Thu, 31 Mar 2022 00:19:26 +0000 (-0500) Subject: Update: Use const for f_console_arguments_t and add envp. X-Git-Tag: 0.5.9~23 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=0699dc97cfa576bc133a1cbd3b0be3156e03e8ca;p=fll Update: Use const for f_console_arguments_t and add envp. --- 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;