X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.cpp;h=f8297a6df82820a975bf514702d692de7057ba21;hb=d7bfb9b0fa35679d3e728b9165699d9faf905539;hp=588e83b6c495ef4f1b8c50f805e46e86c97fea5c;hpb=21cf9b6b1843774306a76f4dccddddd706b64f79;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/manage-apps.cpp b/src/bin/lttng-sessiond/manage-apps.cpp index 588e83b6c..f8297a6df 100644 --- a/src/bin/lttng-sessiond/manage-apps.cpp +++ b/src/bin/lttng-sessiond/manage-apps.cpp @@ -7,16 +7,18 @@ * */ -#include "manage-apps.h" -#include "testpoint.h" -#include "health-sessiond.h" -#include "utils.h" -#include "thread.h" +#include "manage-apps.hpp" +#include "testpoint.hpp" +#include "health-sessiond.hpp" +#include "utils.hpp" +#include "thread.hpp" +namespace { struct thread_notifiers { struct lttng_pipe *quit_pipe; int apps_cmd_pipe_read_fd; }; +} /* namespace */ static void cleanup_application_management_thread(void *data) { @@ -211,7 +213,7 @@ bool launch_application_management_thread(int apps_cmd_pipe_read_fd) struct thread_notifiers *notifiers = NULL; struct lttng_thread *thread; - notifiers = (thread_notifiers *) zmalloc(sizeof(*notifiers)); + notifiers = zmalloc(); if (!notifiers) { goto error_alloc; }