tests: make functions static in test_utils_expand_path.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:13:30 +0000 (16:13 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Dec 2019 21:24:06 +0000 (16:24 -0500)
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 <simon.marchi@efficios.com>
Change-Id: I220a2f8dadb355adb4fb974a2f3a0e161b0618e6
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_utils_expand_path.c

index d72196404e1115f7c38cbd4b43ab394dbfe86480..e0cd366132b8184b7f4e8e362507cdd3f31660ac 100644 (file)
@@ -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];
This page took 0.026773 seconds and 4 git commands to generate.