Fix: tests: make some functions static
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 25 Mar 2020 22:39:43 +0000 (18:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Mar 2020 22:01:40 +0000 (18:01 -0400)
Make two functions static, they are only used in their respective file.

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

index 0de1729e6b6808e690c406db42e6d247f0790324..2c5337fa090566de4e40a9aaecc41046615f12da 100644 (file)
@@ -54,6 +54,7 @@ const char file_contents[] = "Bacon ipsum dolor amet jerky drumstick sirloin "
        "Landjaeger tri-tip salami leberkas ball tip, ham hock chuck sausage "
        "flank jerky cupim. Pig bacon chuck pancetta andouille.";
 
+static
 void get_temporary_directories(char **_test_directory, char **_unlink_directory)
 {
        int ret;
index 41ff237d861d5e198840678eb047dee99fb6a733..566ef21a020498a925678475dfe6537e5ee2ef40 100644 (file)
@@ -55,6 +55,7 @@ int lttng_opt_mi;
 #define CLOE_VALUE FD_CLOEXEC
 #endif
 
+static
 void test_epoll_compat(void)
 {
        /*
This page took 0.027035 seconds and 5 git commands to generate.