{
struct lttng_log_level_rule *rule = NULL;
- rule = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ rule = zmalloc<lttng_log_level_rule>();
if (!rule) {
goto end;
}
{
struct lttng_log_level_rule *rule = NULL;
- rule = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ rule = zmalloc<lttng_log_level_rule>();
if (!rule) {
goto end;
}
LTTNG_ASSERT(source);
- copy = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ copy = zmalloc<lttng_log_level_rule>();
if (!copy) {
goto end;
}