From 283fe1e8565fe66409c88825c250a6ec8aae6420 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 9 Feb 2025 00:27:54 -0600 Subject: [PATCH] Update: Use a constant for the argv in fss_write. --- level_3/fss_write/c/main/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/level_3/fss_write/c/main/main.c b/level_3/fss_write/c/main/main.c index b73759c..2ef7a03 100644 --- a/level_3/fss_write/c/main/main.c +++ b/level_3/fss_write/c/main/main.c @@ -106,9 +106,8 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->call.process_set = &fss_write_process_set; if (main->program.parameters.array[fss_write_parameter_as_e].result & f_console_result_value_e && main->program.parameters.array[fss_write_parameter_as_e].values.used) { - f_number_unsigned_t index = 0; - f_string_static_t *argv = main->program.parameters.arguments.array; + f_string_static_t * const argv = main->program.parameters.arguments.array; for (f_number_unsigned_t i = 0; i < main->program.parameters.array[fss_write_parameter_as_e].values.used; ++i) { -- 1.8.3.1