Fix: mark ltt_sessions_ht_destroy as static
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index a6281662cf63c23e67b1172b6930e47af3094d10..456901685daeb25a2c28e23df500dc408ea5fcca 100644 (file)
@@ -143,6 +143,8 @@ void session_unlock_list(void)
 
 /*
  * Allocate the ltt_sessions_ht_by_id HT.
+ *
+ * The session list lock must be held.
  */
 int ltt_sessions_ht_alloc(void)
 {
@@ -161,8 +163,10 @@ end:
 
 /*
  * Destroy the ltt_sessions_ht_by_id HT.
+ *
+ * The session list lock must be held.
  */
-void ltt_sessions_ht_destroy(void)
+static void ltt_sessions_ht_destroy(void)
 {
        if (!ltt_sessions_ht_by_id) {
                return;
@@ -201,7 +205,7 @@ end:
  * Return 1 if empty, 0 if not empty.
  * The session list lock must be held.
  */
-static int ltt_sessions_ht_empty()
+static int ltt_sessions_ht_empty(void)
 {
        int ret;
 
This page took 0.025034 seconds and 4 git commands to generate.