X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fthread.cpp;h=94890e6ef47786db7d13fce3fac6f9e372fe878a;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=446a8c9d2e52276dd5972cf869884c57ec22bb78;hpb=7966af5763c4aaca39df9bbfa9277ff15715c720;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/thread.cpp b/src/bin/lttng-sessiond/thread.cpp index 446a8c9d2..94890e6ef 100644 --- a/src/bin/lttng-sessiond/thread.cpp +++ b/src/bin/lttng-sessiond/thread.cpp @@ -5,13 +5,13 @@ * */ -#include "thread.h" +#include "thread.hpp" #include #include #include -#include -#include -#include +#include +#include +#include static struct thread_list { struct cds_list_head head; @@ -77,7 +77,7 @@ struct lttng_thread *lttng_thread_create(const char *name, int ret; struct lttng_thread *thread; - thread = (lttng_thread *) zmalloc(sizeof(*thread)); + thread = zmalloc(); if (!thread) { goto error_alloc; }