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 /jffsX-utils/jffs2dump.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 'jffsX-utils/jffs2dump.c')
-rw-r--r-- | jffsX-utils/jffs2dump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jffsX-utils/jffs2dump.c b/jffsX-utils/jffs2dump.c index a7d99e8..ad7a9e3 100644 --- a/jffsX-utils/jffs2dump.c +++ b/jffsX-utils/jffs2dump.c @@ -50,7 +50,7 @@ long imglen; // length of image char *data; // image data -void display_help (int error) +static void display_help (int error) { printf("Usage: %s [OPTION]... INPUTFILE\n" "Dump the contents of a binary JFFS2 image.\n\n" @@ -68,7 +68,7 @@ void display_help (int error) exit(error ? EXIT_FAILURE : EXIT_SUCCESS); } -void display_version (void) +static void display_version (void) { common_print_version(); printf("Copyright (C) 2003 Thomas Gleixner \n" @@ -95,7 +95,7 @@ char cnvfile[256]; // filename for conversion output int datsize; // Size of data chunks, when oob data is inside the binary image int oobsize; // Size of oob chunks, when oob data is inside the binary image -void process_options (int argc, char *argv[]) +static void process_options (int argc, char *argv[]) { int error = 0; @@ -170,7 +170,7 @@ void process_options (int argc, char *argv[]) /* * Dump image contents */ -void do_dumpcontent (void) +static void do_dumpcontent (void) { char *p = data, *p_free_begin; union jffs2_node_union *node; @@ -479,7 +479,7 @@ void do_dumpcontent (void) /* * Convert endianess */ -void do_endianconvert (void) +static void do_endianconvert (void) { char *p = data; union jffs2_node_union *node, newnode; |