]> Kevux Git Server - fll/commit
Cleanup: Utilize 'void' inside of function declarations.
authorKevin Day <thekevinday@gmail.com>
Sun, 12 Dec 2021 01:14:05 +0000 (19:14 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 12 Dec 2021 01:14:05 +0000 (19:14 -0600)
commitcd22361881b9fb82693c5ada91b03ad32d3494d9
tree7b13bc3e3441322c2b8cfaf74d94b637fadfca93
parente70f157e2096fbdacf6740859498bc2634b2d379
Cleanup: Utilize 'void' inside of function declarations.

It seems that by adding 'void' (without a parameter variable name) instructs the compiler that this function is not allowed to take arguments.
When the parameters are empty such as '()', the compiler simply disable checking what the parameters are.

By adding void this results in instructing the compiler to verify that there are no parameters.
This increases the code integrity.

This change may be a problem for older C compilers.
level_0/f_capability/c/capability.c
level_0/f_capability/c/capability.h
level_0/f_environment/c/environment.c
level_0/f_environment/c/environment.h
level_0/f_pipe/c/pipe.c
level_0/f_pipe/c/pipe.h
level_0/f_thread/c/thread.c
level_0/f_thread/c/thread.h