Make remove_file_from_hierarchy function static in test_directory_handle.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:16:32 +0000 (16:16 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Mar 2020 19:19:12 +0000 (15:19 -0400)
Fixes:

      CC test_directory_handle.o
    /home/smarchi/src/lttng-tools/tests/unit/test_directory_handle.c:139:5:
    error: no previous declaration for ‘remove_file_from_hierarchy’
    [-Werror=missing-declarations] int
    remove_file_from_hierarchy(struct
    lttng_directory_handle *test_dir_handle,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I060a89d88f2de8e12368496968708d273cb318f2
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_directory_handle.c

index f3213cb74adbb16e0ac5c2a7d5c46780d66f91a5..a94c4df75e7049da5cf7ac2d9a6897f6fb230590 100644 (file)
@@ -126,6 +126,7 @@ end:
 }
 
 /* Remove "file1" from the test folder hierarchy. */
+static
 int remove_file_from_hierarchy(struct lttng_directory_handle *test_dir_handle,
                const char *test_root_name)
 {
This page took 0.025586 seconds and 4 git commands to generate.