X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fhealth.cpp;h=0735907a26ad3ae67d9fc26d6f543e8f7f0c98fa;hb=042670db60ac672661e1bbc8de4da1d8590e20b4;hp=a7f4bdcbb534dc82ae6b6cebaae876043a8f71f5;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/health.cpp b/src/bin/lttng-sessiond/health.cpp index a7f4bdcbb..0735907a2 100644 --- a/src/bin/lttng-sessiond/health.cpp +++ b/src/bin/lttng-sessiond/health.cpp @@ -17,10 +17,12 @@ #include "utils.hpp" #include "thread.hpp" +namespace { struct thread_notifiers { struct lttng_pipe *quit_pipe; sem_t ready; }; +} /* namespace */ static void mark_thread_as_ready(struct thread_notifiers *notifiers) @@ -255,7 +257,7 @@ bool launch_health_management_thread(void) struct thread_notifiers *notifiers; struct lttng_thread *thread; - notifiers = (thread_notifiers *) zmalloc(sizeof(*notifiers)); + notifiers = zmalloc(); if (!notifiers) { goto error_alloc; }