]> git.ipfire.org Git - pakfire.git/commitdiff
testsuite: Fix prototype declarations
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Dec 2021 13:23:50 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Dec 2021 13:23:50 +0000 (13:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/cgroup.c
tests/testsuite.h

index 5cc8b61f7f5f503008c5a9807419f89b7077ed3f..b47ec4b82a1c8ac4be5a96d2f2a7527f69c571ae 100644 (file)
@@ -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);
 
index f7eaaab5e96961b52eae18d5efa93818604960c8..4e529aee461e2da1e8bc7181d8e159beecff17ec 100644 (file)
@@ -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 */