From: Simon Marchi Date: Mon, 25 Nov 2019 21:27:13 +0000 (-0500) Subject: Make functions in live_test.c static X-Git-Tag: v2.13.0-rc1~741 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8f92cd086c53db21b7e4ed3c7ce49db85726f2fd;p=lttng-tools.git Make functions in live_test.c static Fixes: CC live_test.o /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:154:5: error: no previous declaration for ‘establish_connection’ [-Werror=missing-declarations] int establish_connection(void) ^~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:198:5: error: no previous declaration for ‘list_sessions’ [-Werror=missing-declarations] int list_sessions(uint64_t *session_id) ^~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:245:5: error: no previous declaration for ‘create_viewer_session’ [-Werror=missing-declarations] int create_viewer_session(void) ^~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:283:5: error: no previous declaration for ‘attach_session’ [-Werror=missing-declarations] int attach_session(uint64_t id) ^~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:372:5: error: no previous declaration for ‘get_metadata’ [-Werror=missing-declarations] int get_metadata(void) ^~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:466:5: error: no previous declaration for ‘get_next_index’ [-Werror=missing-declarations] int get_next_index(void) ^~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/regression/tools/live/live_test.c:631:5: error: no previous declaration for ‘detach_viewer_session’ [-Werror=missing-declarations] int detach_viewer_session(uint64_t id) ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I7dc82076439e1bccd7bc253d084291f6281f6887 Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/live/live_test.c b/tests/regression/tools/live/live_test.c index ee75c04f7..d5da03e4d 100644 --- a/tests/regression/tools/live/live_test.c +++ b/tests/regression/tools/live/live_test.c @@ -138,6 +138,7 @@ end: return ret; } +static int establish_connection(void) { struct lttng_viewer_cmd cmd; @@ -182,6 +183,7 @@ error: /* * Returns the number of sessions, should be 1 during the unit test. */ +static int list_sessions(uint64_t *session_id) { struct lttng_viewer_cmd cmd; @@ -229,6 +231,7 @@ error: return -1; } +static int create_viewer_session(void) { struct lttng_viewer_cmd cmd; @@ -267,6 +270,7 @@ error: return -1; } +static int attach_session(uint64_t id) { struct lttng_viewer_cmd cmd; @@ -356,6 +360,7 @@ error: return -1; } +static int get_metadata(void) { struct lttng_viewer_cmd cmd; @@ -451,6 +456,7 @@ error: return -1; } +static int get_next_index(void) { struct lttng_viewer_cmd cmd; @@ -616,6 +622,7 @@ error: return -1; } +static int detach_viewer_session(uint64_t id) { struct lttng_viewer_cmd cmd;