{
struct lttng_condition_buffer_usage *condition;
- condition = (lttng_condition_buffer_usage *) zmalloc(sizeof(struct lttng_condition_buffer_usage));
+ condition = zmalloc<lttng_condition_buffer_usage>();
if (!condition) {
return NULL;
}
{
struct lttng_evaluation_buffer_usage *usage;
- usage = (lttng_evaluation_buffer_usage *) zmalloc(sizeof(struct lttng_evaluation_buffer_usage));
+ usage = zmalloc<lttng_evaluation_buffer_usage>();
if (!usage) {
goto end;
}