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/rfdformat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nor-utils/rfdformat.c') diff --git a/nor-utils/rfdformat.c b/nor-utils/rfdformat.c index 1f01a85..0a3d9fb 100644 --- a/nor-utils/rfdformat.c +++ b/nor-utils/rfdformat.c @@ -30,7 +30,7 @@ #include "common.h" -void display_help(int status) +static void display_help(int status) { printf("Usage: %s [OPTIONS] MTD-device\n" "Formats NOR flash for resident flash disk\n" @@ -41,7 +41,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" @@ -49,7 +49,7 @@ void display_version(void) exit(0); } -void process_options(int argc, char *argv[], const char **mtd_filename) +static void process_options(int argc, char *argv[], const char **mtd_filename) { int error = 0; -- cgit v1.2.3