From: Kevin Day Date: Sun, 11 Mar 2012 05:31:03 +0000 (-0600) Subject: Update: return the literal error code X-Git-Tag: 0.3.0~88 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9e83cd794cf40e37d24a16f67e2fa65e0a87cff9;p=fll Update: return the literal error code The error code was being converted into 0 if the code was f_none. Stop doing this behavior, all the scripts need to be fll return state aware from this point forward. --- diff --git a/level_3/fss_basic_list_read/c/main.c b/level_3/fss_basic_list_read/c/main.c index f0ae4a7..257c897 100644 --- a/level_3/fss_basic_list_read/c/main.c +++ b/level_3/fss_basic_list_read/c/main.c @@ -1,16 +1,11 @@ #include int main(const f_array_length argc, const f_string argv[]){ - f_status status = f_status_initialize; - fss_basic_list_read_data data = fss_basic_list_read_data_initialize; + fss_basic_list_read_data data = fss_basic_list_read_data_initialize; if (f_pipe_exists()){ data.process_pipe = f_true; } - status = fss_basic_list_read_main(argc, argv, &data); - - if (status == f_none) return 0; - - return status; + return fss_basic_list_read_main(argc, argv, &data); } diff --git a/level_3/fss_basic_read/c/main.c b/level_3/fss_basic_read/c/main.c index 39ab095..262da30 100644 --- a/level_3/fss_basic_read/c/main.c +++ b/level_3/fss_basic_read/c/main.c @@ -1,16 +1,11 @@ #include int main(const f_array_length argc, const f_string argv[]){ - f_status status = f_status_initialize; - fss_basic_read_data data = fss_basic_read_data_initialize; + fss_basic_read_data data = fss_basic_read_data_initialize; if (f_pipe_exists()){ data.process_pipe = f_true; } - status = fss_basic_read_main(argc, argv, &data); - - if (status == f_none) return 0; - - return status; + return fss_basic_read_main(argc, argv, &data); } diff --git a/level_3/fss_extended_read/c/main.c b/level_3/fss_extended_read/c/main.c index ea28fe7..ef6ac18 100644 --- a/level_3/fss_extended_read/c/main.c +++ b/level_3/fss_extended_read/c/main.c @@ -1,16 +1,11 @@ #include int main(const f_array_length argc, const f_string argv[]){ - f_status status = f_status_initialize; - fss_extended_read_data data = fss_extended_read_data_initialize; + fss_extended_read_data data = fss_extended_read_data_initialize; if (f_pipe_exists()){ data.process_pipe = f_true; } - status = fss_extended_read_main(argc, argv, &data); - - if (status == f_none) return 0; - - return status; + return fss_extended_read_main(argc, argv, &data); }