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/utils/fstest_monitor.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/fs-tests/utils') diff --git a/tests/fs-tests/utils/fstest_monitor.c b/tests/fs-tests/utils/fstest_monitor.c index 298ee26..58946cc 100644 --- a/tests/fs-tests/utils/fstest_monitor.c +++ b/tests/fs-tests/utils/fstest_monitor.c @@ -38,7 +38,7 @@ struct child_info { struct child_info *children = 0; -void kill_children(void) +static void kill_children(void) { struct child_info *child; @@ -57,7 +57,7 @@ void kill_children(void) } } -void add_child(pid_t child_pid) +static void add_child(pid_t child_pid) { struct child_info *child; size_t sz; @@ -70,7 +70,7 @@ void add_child(pid_t child_pid) children = child; } -void mark_child_gone(pid_t child_pid) +static void mark_child_gone(pid_t child_pid) { struct child_info *child; @@ -84,7 +84,7 @@ void mark_child_gone(pid_t child_pid) } } -int have_children(void) +static int have_children(void) { struct child_info *child; @@ -97,7 +97,7 @@ int have_children(void) return 0; } -int parse_command_line(char *cmdline, int *pargc, char ***pargv) +static int parse_command_line(char *cmdline, int *pargc, char ***pargv) { char **tmp; char *p, *v, *q; @@ -175,7 +175,7 @@ int parse_command_line(char *cmdline, int *pargc, char ***pargv) return 0; } -void signal_handler(int signum) +static void signal_handler(int signum) { kill_children(); } @@ -183,7 +183,7 @@ void signal_handler(int signum) int result = 0; int alarm_gone_off = 0; -void alarm_handler(int signum) +static void alarm_handler(int signum) { if (!result) alarm_gone_off = 1; -- cgit v1.2.3