From: Michael Tremer Date: Thu, 9 Dec 2021 13:23:50 +0000 (+0000) Subject: testsuite: Fix prototype declarations X-Git-Tag: 0.9.28~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d67bfce8e1864d135706ec47a1c01b5ce0ed93;p=pakfire.git testsuite: Fix prototype declarations Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/cgroup.c b/tests/libpakfire/cgroup.c index 5cc8b61f7..b47ec4b82 100644 --- a/tests/libpakfire/cgroup.c +++ b/tests/libpakfire/cgroup.c @@ -89,7 +89,7 @@ static void handle_signal(int signum) { LOG("Process %d received signal %d\n", pid, signum); } -static int child_process() { +static int child_process(void) { LOG("Child process started with PID %d\n", getpid()); signal(SIGTERM, handle_signal); @@ -104,7 +104,7 @@ static int child_process() { return 0; } -static pid_t fork_child_process() { +static pid_t fork_child_process(void) { pid_t pid = fork(); ASSERT(pid >= 0); diff --git a/tests/testsuite.h b/tests/testsuite.h index f7eaaab5e..4e529aee4 100644 --- a/tests/testsuite.h +++ b/tests/testsuite.h @@ -46,7 +46,7 @@ struct testsuite { extern struct testsuite ts; int __testsuite_add_test(const char* name, int (*func)(const struct test* t)); -int testsuite_run(); +int testsuite_run(void); #define _LOG(prefix, fmt, ...) fprintf(stderr, "TESTS: " prefix fmt, ## __VA_ARGS__); #define LOG(fmt, ...) _LOG("", fmt, ## __VA_ARGS__); @@ -182,6 +182,6 @@ int testsuite_run(); // Helper functions FILE* test_mktemp(char** path); -char* test_mkdtemp(); +char* test_mkdtemp(void); #endif /* PAKFIRE_TESTSUITE_H */