{
struct lttng_trace_archive_location *location;
- location = (lttng_trace_archive_location *) zmalloc(sizeof(*location));
+ location = zmalloc<lttng_trace_archive_location>();
if (!location) {
goto end;
}
void trace_archive_location_destroy_ref(struct urcu_ref *ref)
{
struct lttng_trace_archive_location *location =
- container_of(ref, struct lttng_trace_archive_location, ref);
+ lttng::utils::container_of(ref, <tng_trace_archive_location::ref);
switch (location->type) {
case LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_LOCAL: