]> Kevux Git Server - fll/commit
Cleanup: Sloppy use of "main" inside of "main()", oops.
authorKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:07:21 +0000 (21:07 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:07:21 +0000 (21:07 -0500)
commitb7fc039259adee5cf250e05bb6cf6d14ea98f9ae
tree86a2307de3e418f6eaa72c8572f8cd2e1a0adb19
parentb5f533a7f7591f8fa55acdaea310df76381fb1e1
Cleanup: Sloppy use of "main" inside of "main()", oops.

I cannot believe I let this one slip through (and so did the compilers).

When I refactored "data" to be "main" this included the refactor in the function called "main".

This is dangerous at worst and at best bad practice.
Given that "data" is no longer to be used in the main(), just rename the uses of "main" back to "data" for the variable name only (not the typedef structure name).
19 files changed:
level_3/byte_dump/c/main.c
level_3/control/c/main.c
level_3/controller/c/main.c
level_3/fake/c/main.c
level_3/firewall/c/main.c
level_3/fss_basic_list_read/c/main.c
level_3/fss_basic_list_write/c/main.c
level_3/fss_basic_read/c/main.c
level_3/fss_basic_write/c/main.c
level_3/fss_embedded_list_read/c/main.c
level_3/fss_embedded_list_write/c/main.c
level_3/fss_extended_list_read/c/main.c
level_3/fss_extended_list_write/c/main.c
level_3/fss_extended_read/c/main.c
level_3/fss_extended_write/c/main.c
level_3/fss_status_code/c/main.c
level_3/iki_read/c/main.c
level_3/iki_write/c/main.c
level_3/status_code/c/main.c