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/stress/atoms/pdfrun.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/fs-tests/stress/atoms/pdfrun.c') diff --git a/tests/fs-tests/stress/atoms/pdfrun.c b/tests/fs-tests/stress/atoms/pdfrun.c index 46c70e1..094af66 100644 --- a/tests/fs-tests/stress/atoms/pdfrun.c +++ b/tests/fs-tests/stress/atoms/pdfrun.c @@ -32,7 +32,7 @@ #define WRITE_BUFFER_SIZE 32768 -void adjust_size(void) +static void adjust_size(void) { char dummy[1024]; unsigned long total_memory; @@ -49,7 +49,7 @@ void adjust_size(void) tests_size_parameter = total_memory / 2; } -void run_pdf(void) +static void run_pdf(void) { int fd, i; pid_t pid; @@ -99,14 +99,14 @@ void run_pdf(void) /* Title of this test */ -const char *run_pdf_get_title(void) +static const char *run_pdf_get_title(void) { return "Create / overwrite a large file in the current directory"; } /* Description of this test */ -const char *run_pdf_get_description(void) +static const char *run_pdf_get_description(void) { return "Create a file named run_pdf_test_file_pid, " \ -- cgit v1.2.3