From: Simon Marchi Date: Mon, 25 Nov 2019 21:17:37 +0000 (-0500) Subject: Make fd_count function static in test_fd_tracker.c X-Git-Tag: v2.13.0-rc1~738 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3ea695b469739ac0f1d6e2a6755c79fa11bc0b28;p=lttng-tools.git Make fd_count function static in test_fd_tracker.c Fixes: CC test_fd_tracker.o /home/smarchi/src/lttng-tools/tests/unit/test_fd_tracker.c:65:5: error: no previous declaration for ‘fd_count’ [-Werror=missing-declarations] int fd_count(void) ^~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I02775d5d601211052b4cad323bc33623beabc8f9 Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/test_fd_tracker.c b/tests/unit/test_fd_tracker.c index cb192ff80..0de1729e6 100644 --- a/tests/unit/test_fd_tracker.c +++ b/tests/unit/test_fd_tracker.c @@ -76,6 +76,7 @@ void get_temporary_directories(char **_test_directory, char **_unlink_directory) } } +static int fd_count(void) { DIR *dir;