Make functions in live_test.c static
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:27:13 +0000 (16:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Mar 2020 01:54:56 +0000 (21:54 -0400)
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 <simon.marchi@efficios.com>
Change-Id: I7dc82076439e1bccd7bc253d084291f6281f6887
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/live/live_test.c

index ee75c04f7ade0e0044a9636d1360b21f0ecd6d4a..d5da03e4d7d4417ed7bdfee5e996430cc4204d85 100644 (file)
@@ -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;
This page took 0.035811 seconds and 4 git commands to generate.