X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fnotification.cpp;h=77e61f21ae60c7a6168ed0feca12fabea758b943;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=989c20ade5e1f126ffcf2609e7f0eea21e2f4028;hpb=a6bc4ca9d659caf016ef932fcd944029737ac57c;p=lttng-tools.git diff --git a/src/common/notification.cpp b/src/common/notification.cpp index 989c20ade..77e61f21a 100644 --- a/src/common/notification.cpp +++ b/src/common/notification.cpp @@ -5,14 +5,14 @@ * */ -#include -#include -#include +#include +#include +#include #include #include -#include -#include -#include +#include +#include +#include struct lttng_notification *lttng_notification_create( struct lttng_trigger *trigger, @@ -24,7 +24,7 @@ struct lttng_notification *lttng_notification_create( goto end; } - notification = (lttng_notification *) zmalloc(sizeof(struct lttng_notification)); + notification = zmalloc(); if (!notification) { goto end; }