X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotify-apps.cpp;h=1fff92d071ba01f1f70aac518493194c791485e0;hb=6d31b87d46a9301fe86d273616ab3d7214d24e65;hp=0e799ff261a5b11d0822004e5293f0b0c96d1a77;hpb=7966af5763c4aaca39df9bbfa9277ff15715c720;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notify-apps.cpp b/src/bin/lttng-sessiond/notify-apps.cpp index 0e799ff26..1fff92d07 100644 --- a/src/bin/lttng-sessiond/notify-apps.cpp +++ b/src/bin/lttng-sessiond/notify-apps.cpp @@ -7,21 +7,23 @@ #define _LGPL_SOURCE -#include -#include - -#include "fd-limit.h" -#include "lttng-sessiond.h" -#include "notify-apps.h" -#include "health-sessiond.h" -#include "testpoint.h" -#include "utils.h" -#include "thread.h" - +#include +#include + +#include "fd-limit.hpp" +#include "lttng-sessiond.hpp" +#include "notify-apps.hpp" +#include "health-sessiond.hpp" +#include "testpoint.hpp" +#include "utils.hpp" +#include "thread.hpp" + +namespace { struct thread_notifiers { struct lttng_pipe *quit_pipe; int apps_cmd_notify_pipe_read_fd; }; +} /* namespace */ /* * This thread manage application notify communication. @@ -212,7 +214,7 @@ bool launch_application_notification_thread(int apps_cmd_notify_pipe_read_fd) struct thread_notifiers *notifiers; struct lttng_pipe *quit_pipe; - notifiers = (thread_notifiers *) zmalloc(sizeof(*notifiers)); + notifiers = zmalloc(); if (!notifiers) { goto error_alloc; }