Make functions in live_test.c static
[lttng-tools.git] / tests / regression / tools / live / live_test.c
index 217c72af422b9286d8b38fe60ed4c4132f1532cb..d5da03e4d7d4417ed7bdfee5e996430cc4204d85 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (c) - 2013 Julien Desfossez <jdesfossez@efficios.com>
+ * Copyright (C) 2013 Julien Desfossez <jdesfossez@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by as
- * published by the Free Software Foundation; only version 2 of the License.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #include <assert.h>
@@ -51,9 +41,6 @@
 #define NUM_TESTS 11
 #define mmap_size 524288
 
-int ust_consumerd32_fd;
-int ust_consumerd64_fd;
-
 static int control_sock;
 struct live_session *session;
 
@@ -151,6 +138,7 @@ end:
        return ret;
 }
 
+static
 int establish_connection(void)
 {
        struct lttng_viewer_cmd cmd;
@@ -195,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;
@@ -242,6 +231,7 @@ error:
        return -1;
 }
 
+static
 int create_viewer_session(void)
 {
        struct lttng_viewer_cmd cmd;
@@ -280,6 +270,7 @@ error:
        return -1;
 }
 
+static
 int attach_session(uint64_t id)
 {
        struct lttng_viewer_cmd cmd;
@@ -369,6 +360,7 @@ error:
        return -1;
 }
 
+static
 int get_metadata(void)
 {
        struct lttng_viewer_cmd cmd;
@@ -464,6 +456,7 @@ error:
        return -1;
 }
 
+static
 int get_next_index(void)
 {
        struct lttng_viewer_cmd cmd;
@@ -629,6 +622,7 @@ error:
        return -1;
 }
 
+static
 int detach_viewer_session(uint64_t id)
 {
        struct lttng_viewer_cmd cmd;
This page took 0.032739 seconds and 4 git commands to generate.