From 710ddbffea55f06f91cb0325b900f0ffda77795f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Oct 2021 19:11:51 +0200 Subject: init/tests: make the test(s) static --- src/init/tests/main.c | 11 +++++++---- src/init/tests/main.h | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/init') diff --git a/src/init/tests/main.c b/src/init/tests/main.c index 48134d0..7890ca3 100644 --- a/src/init/tests/main.c +++ b/src/init/tests/main.c @@ -12,11 +12,8 @@ static void run_forked(void (*fn)()) { } -void test_all(void) { - run_forked(test_await); -} -void test_await(void) { +static void test_await(void) { int ret; // regular exit()s @@ -39,3 +36,9 @@ void test_await(void) { printf("await returned: %x\n", ret); printf("await: no more children\n"); } + + + +void test_all(void) { + run_forked(test_await); +} diff --git a/src/init/tests/main.h b/src/init/tests/main.h index 4899bd5..9a2afd2 100644 --- a/src/init/tests/main.h +++ b/src/init/tests/main.h @@ -1,5 +1,3 @@ #pragma once void test_all(void); - -void test_await(void); -- cgit v1.2.3