From: Simon Marchi Date: Mon, 25 Nov 2019 21:13:30 +0000 (-0500) Subject: tests: make functions static in test_utils_expand_path.c X-Git-Tag: v2.12.0-rc1~181 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8dfbc0b4d639bbbc3593e8594a6dd496368ee422;p=lttng-tools.git tests: make functions static in test_utils_expand_path.c 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 --- 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];