From: Simon Marchi Date: Mon, 25 Nov 2019 21:11:26 +0000 (-0500) Subject: tests: make functions static in test_uri.c X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=8fa8ae59191469a920f880e7166f3e47dbc63af8;ds=sidebyside tests: make functions static in test_uri.c Fixes: CC test_uri.o /home/smarchi/src/lttng-tools/tests/unit/test_uri.c:33:6: error: no previous declaration for ‘test_uri_parsing’ [-Werror=missing-declarations] void test_uri_parsing(void) ^~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_uri.c:201:6: error: no previous declaration for ‘test_uri_cmp’ [-Werror=missing-declarations] void test_uri_cmp() ^~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: Ia0d7b08a10ec9f8d3f6f2d5b4fa9c4f417827024 Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 61e89e120..58042c42e 100644 --- a/tests/unit/test_uri.c +++ b/tests/unit/test_uri.c @@ -30,7 +30,7 @@ int lttng_opt_mi; /* Number of TAP tests in this file */ #define NUM_TESTS 11 -void test_uri_parsing(void) +static void test_uri_parsing(void) { ssize_t size; const char *s_uri1; @@ -198,7 +198,7 @@ void test_uri_parsing(void) assert(!uri); } -void test_uri_cmp() +static void test_uri_cmp() { struct lttng_uri *uri1, *uri2; const char *s_uri1 = "net://localhost";