Fix: tests: fix unused-but-set warning in test_fd_tracker.c
[lttng-tools.git] / src / bin / lttng-sessiond / utils.c
index f84859fc621645aea1939d7c04648c7ac729682a..6936a03f963de2d0d37a18040f39fbd32b99d2a1 100644 (file)
@@ -16,7 +16,7 @@
 #include "snapshot.h"
 #include "lttng-sessiond.h"
 
-int ht_cleanup_pipe[2] = { -1, -1 };
+int the_ht_cleanup_pipe[2] = {-1, -1};
 
 /*
  * Write to writable pipe used to notify a thread.
@@ -41,7 +41,7 @@ int notify_thread_pipe(int wpipe)
 void ht_cleanup_push(struct lttng_ht *ht)
 {
        ssize_t ret;
-       int fd = ht_cleanup_pipe[1];
+       int fd = the_ht_cleanup_pipe[1];
 
        if (!ht) {
                return;
@@ -60,7 +60,7 @@ void ht_cleanup_push(struct lttng_ht *ht)
        /* All good. Don't send back the write positive ret value. */
        ret = 0;
 error:
-       assert(!ret);
+       LTTNG_ASSERT(!ret);
 }
 
 int loglevels_match(int a_loglevel_type, int a_loglevel_value,
This page took 0.023645 seconds and 4 git commands to generate.