*
*/
-#include <lttng/location-internal.h>
-#include <common/macros.h>
+#include <lttng/location-internal.hpp>
+#include <common/macros.hpp>
#include <stdlib.h>
-#include <common/error.h>
+#include <common/error.hpp>
static
struct lttng_trace_archive_location *lttng_trace_archive_location_create(
{
struct lttng_trace_archive_location *location;
- location = (lttng_trace_archive_location *) zmalloc(sizeof(*location));
+ location = zmalloc<lttng_trace_archive_location>();
if (!location) {
goto end;
}