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 --- tests/fs-tests/simple/orph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/fs-tests/simple/orph.c') diff --git a/tests/fs-tests/simple/orph.c b/tests/fs-tests/simple/orph.c index f6d8956..c51fa2c 100644 --- a/tests/fs-tests/simple/orph.c +++ b/tests/fs-tests/simple/orph.c @@ -32,7 +32,7 @@ #define MAX_ORPHANS 1000000 -void orph(void) +static void orph(void) { pid_t pid; unsigned i, j, k, n; @@ -133,14 +133,14 @@ void orph(void) /* Title of this test */ -const char *orph_get_title(void) +static const char *orph_get_title(void) { return "Create many open unlinked files"; } /* Description of this test */ -const char *orph_get_description(void) +static const char *orph_get_description(void) { return "Create a directory named orph_test_dir_pid, where " \ -- cgit v1.2.3