{
LTTNG_ASSERT(action);
- return container_of(action, struct lttng_action_notify, parent);
+ return lttng::utils::container_of(action, <tng_action_notify::parent);
}
static const struct lttng_action_notify *action_notify_from_action_const(
{
LTTNG_ASSERT(action);
- return container_of(action, struct lttng_action_notify, parent);
+ return lttng::utils::container_of(action, <tng_action_notify::parent);
}
static
struct lttng_action_notify *notify = NULL;
struct lttng_action *action = NULL;
- notify = (lttng_action_notify *) zmalloc(sizeof(struct lttng_action_notify));
+ notify = zmalloc<lttng_action_notify>();
if (!notify) {
goto end;
}