goto end;
}
- trigger = (lttng_trigger *) zmalloc(sizeof(struct lttng_trigger));
+ trigger = zmalloc<lttng_trigger>();
if (!trigger) {
goto end;
}
{
struct lttng_triggers *triggers = NULL;
- triggers = (lttng_triggers *) zmalloc(sizeof(*triggers));
+ triggers = zmalloc<lttng_triggers>();
if (!triggers) {
goto end;
}