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/lib/tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/fs-tests/lib/tests.c') diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c index 8a6a5f5..8d4d83a 100644 --- a/tests/fs-tests/lib/tests.c +++ b/tests/fs-tests/lib/tests.c @@ -530,7 +530,7 @@ void tests_check_filled_file(const char *file_name) CHECK(close(fd) != -1); } -void tests_sync_directory(const char *file_name) +static void tests_sync_directory(const char *file_name) { char *path; char *dir; @@ -949,7 +949,7 @@ int64_t tests_remove_entry(void) } /* Read mount information from /proc/mounts or /etc/mtab */ -int tests_get_mount_info(struct mntent *info) +static int tests_get_mount_info(struct mntent *info) { FILE *f; struct mntent *entry; -- cgit v1.2.3