X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fctf-trace.cpp;h=cad67b78e2517296f06e3610b2d7b3d7e25d2ce2;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=861bcfbb3f7a44c6d055babdc544abc584835dfc;hpb=48b7cdc221a445188d6d9bd08fc1686837e71224;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/ctf-trace.cpp b/src/bin/lttng-relayd/ctf-trace.cpp index 861bcfbb3..cad67b78e 100644 --- a/src/bin/lttng-relayd/ctf-trace.cpp +++ b/src/bin/lttng-relayd/ctf-trace.cpp @@ -9,13 +9,13 @@ #define _LGPL_SOURCE -#include -#include +#include +#include #include -#include "ctf-trace.h" -#include "lttng-relayd.h" -#include "stream.h" +#include "ctf-trace.hpp" +#include "lttng-relayd.hpp" +#include "stream.hpp" static uint64_t last_relay_ctf_trace_id; static pthread_mutex_t last_relay_ctf_trace_id_lock = PTHREAD_MUTEX_INITIALIZER; @@ -97,7 +97,7 @@ static struct ctf_trace *ctf_trace_create(struct relay_session *session, { struct ctf_trace *trace; - trace = (ctf_trace *) zmalloc(sizeof(*trace)); + trace = zmalloc(); if (!trace) { PERROR("Failed to allocate ctf_trace"); goto end;