From ca517e8b320c7a31c3a147fb1212ddb33cabd919 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 22 Jun 2017 13:37:40 +0200 Subject: 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 --- nor-utils/rfddump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nor-utils/rfddump.c') diff --git a/nor-utils/rfddump.c b/nor-utils/rfddump.c index 5141ea3..4ad2f91 100644 --- a/nor-utils/rfddump.c +++ b/nor-utils/rfddump.c @@ -55,7 +55,7 @@ struct rfd { int verbose; }; -void display_help(int status) +static void display_help(int status) { printf("Usage: %s [OPTIONS] MTD-device filename\n" "Dumps the contents of a resident flash disk\n" @@ -68,7 +68,7 @@ void display_help(int status) exit(status); } -void display_version(void) +static void display_version(void) { common_print_version(); printf("This is free software; see the source for copying conditions. There is NO\n" @@ -76,7 +76,7 @@ void display_version(void) exit(0); } -void process_options(int argc, char *argv[], struct rfd *rfd) +static void process_options(int argc, char *argv[], struct rfd *rfd) { int error = 0; @@ -125,7 +125,7 @@ void process_options(int argc, char *argv[], struct rfd *rfd) rfd->out_filename = argv[optind + 1]; } -int build_block_map(struct rfd *rfd, int fd, int block) +static int build_block_map(struct rfd *rfd, int fd, int block) { int i; int sectors; -- cgit v1.2.3