From 8dfbc0b4d639bbbc3593e8594a6dd496368ee422 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 16:13:30 -0500 Subject: [PATCH] tests: make functions static in test_utils_expand_path.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: CC test_utils_expand_path.o /home/smarchi/src/lttng-tools/tests/unit/test_utils_expand_path.c:126:5: error: no previous declaration for ‘prepare_valid_results’ [-Werror=missing-declarations] int prepare_valid_results(void) ^~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_expand_path.c:182:5: error: no previous declaration for ‘free_valid_results’ [-Werror=missing-declarations] int free_valid_results(void) ^~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_expand_path.c:195:5: error: no previous declaration for ‘prepare_symlink_tree’ [-Werror=missing-declarations] int prepare_symlink_tree(void) ^~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_expand_path.c:235:5: error: no previous declaration for ‘free_symlink_tree’ [-Werror=missing-declarations] int free_symlink_tree(void) ^~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I220a2f8dadb355adb4fb974a2f3a0e161b0618e6 Signed-off-by: Jérémie Galarneau --- tests/unit/test_utils_expand_path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index d72196404..e0cd36613 100644 --- a/tests/unit/test_utils_expand_path.c +++ b/tests/unit/test_utils_expand_path.c @@ -123,7 +123,7 @@ static const int num_invalid_tests = #define PRINT_ERR(fmt, args...) \ fprintf(stderr, "test_utils_expand_path: error: " fmt "\n", ## args) -int prepare_valid_results(void) +static int prepare_valid_results(void) { int i; char *relative, *cur_path = NULL, *prev_path = NULL, @@ -179,7 +179,7 @@ end: return ret; } -int free_valid_results(void) +static int free_valid_results(void) { int i; @@ -192,7 +192,7 @@ int free_valid_results(void) return 0; } -int prepare_symlink_tree(void) +static int prepare_symlink_tree(void) { int i; char tmppath[PATH_MAX] = {}; @@ -232,7 +232,7 @@ error: return 1; } -int free_symlink_tree(void) +static int free_symlink_tree(void) { int i; char tmppath[PATH_MAX]; -- 2.34.1