#include <stddef.h>
#include <stdbool.h>
-#include <common/error.h>
-#include <common/macros.h>
-#include <lttng/event-field-value-internal.h>
+#include <common/error.hpp>
+#include <common/macros.hpp>
+#include <lttng/event-field-value-internal.hpp>
static
struct lttng_event_field_value *create_empty_field_val(
{
struct lttng_event_field_value *field_val;
- field_val = (lttng_event_field_value *) zmalloc(size);
+ field_val = zmalloc<lttng_event_field_value>(size);
if (!field_val) {
goto end;
}