X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fregister.cpp;h=aac16b183cfb3aae0f6b6519e4b946cbf6bfe289;hb=2d7da3031c65c4569ff2428a7c2cad30007f3b50;hp=a20db57f6606a88e95ced320ec03eeaa0cf19cce;hpb=21cf9b6b1843774306a76f4dccddddd706b64f79;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/register.cpp b/src/bin/lttng-sessiond/register.cpp index a20db57f6..aac16b183 100644 --- a/src/bin/lttng-sessiond/register.cpp +++ b/src/bin/lttng-sessiond/register.cpp @@ -10,19 +10,19 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include "register.h" -#include "lttng-sessiond.h" -#include "testpoint.h" -#include "health-sessiond.h" -#include "fd-limit.h" -#include "utils.h" -#include "thread.h" +#include "register.hpp" +#include "lttng-sessiond.hpp" +#include "testpoint.hpp" +#include "health-sessiond.hpp" +#include "fd-limit.hpp" +#include "utils.hpp" +#include "thread.hpp" struct thread_state { struct lttng_pipe *quit_pipe; @@ -265,7 +265,7 @@ static void *thread_application_registration(void *data) (void) utils_set_fd_cloexec(sock); /* Create UST registration command for enqueuing */ - ust_cmd = (ust_command *) zmalloc(sizeof(struct ust_command)); + ust_cmd = zmalloc(); if (ust_cmd == NULL) { PERROR("ust command zmalloc"); ret = close(sock); @@ -392,7 +392,7 @@ struct lttng_thread *launch_application_registration_thread( const bool is_root = (getuid() == 0); int application_socket = -1; - thread_state = (struct thread_state *) zmalloc(sizeof(*thread_state)); + thread_state = zmalloc(); if (!thread_state) { goto error_alloc; }