Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / conditions / buffer-usage.cpp
index b1d001dc4ae599332546a61eab3940a13a58ad4a..57e1c79cbd43bfb21b9e2b46e3ad850678a94fff 100644 (file)
@@ -321,7 +321,7 @@ struct lttng_condition *lttng_condition_buffer_usage_create(
 {
        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;
        }
@@ -864,7 +864,7 @@ struct lttng_evaluation *lttng_evaluation_buffer_usage_create(
 {
        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;
        }
This page took 0.023844 seconds and 4 git commands to generate.