diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-06-22 13:37:40 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-06-28 10:27:31 +0200 |
commit | ca517e8b320c7a31c3a147fb1212ddb33cabd919 (patch) | |
tree | a26d535836a82ea241dc0389b061176ddfcd8329 /tests/checkfs/makefiles.c | |
parent | 3029b659e89caa79b6860c3bbe8cbc18b53af678 (diff) |
Eliminate warnings about missing prototypes
This patch eliminates warnings generated by the -Wmissing-prototypes
option. With this flag set, we are now forced to have prototypes for
all global, exported functions, that have to be made visible to the
definitions and we are forced to mark all local functions as static.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/checkfs/makefiles.c')
-rw-r--r-- | tests/checkfs/makefiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkfs/makefiles.c b/tests/checkfs/makefiles.c index 52fea54..4f37f2e 100644 --- a/tests/checkfs/makefiles.c +++ b/tests/checkfs/makefiles.c @@ -79,7 +79,7 @@ static const unsigned short crc_ccitt_table[] = { //CRC to calculate out to 0xf0b8 (the hardcoded value at the end) //and returns TRUE if it is and FALSE if it doesn't. //Why don't people document better!!!! -void check_crc_ccitt(char *filename) +static void check_crc_ccitt(char *filename) { FILE *fp; unsigned short crc = 0xffff; @@ -127,7 +127,7 @@ void check_crc_ccitt(char *filename) contents, and then appends the checksum at the end of the file, closes the file and returns. */ -void checksum(char *filename){ +static void checksum(char *filename){ FILE *fp; unsigned short crc = 0xffff; |