struct lttng_payload *payload)
{
int ret;
- struct lttng_evaluation_comm evaluation_comm = {
- .type = (int8_t) evaluation->type
- };
+ struct lttng_evaluation_comm evaluation_comm;
+
+ evaluation_comm.type = (int8_t) evaluation->type;
ret = lttng_dynamic_buffer_append(&payload->buffer, &evaluation_comm,
sizeof(evaluation_comm));
LTTNG_ASSERT(condition->type ==
LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES);
ret = lttng_evaluation_event_rule_matches_create_from_payload(
- container_of(condition,
- const struct lttng_condition_event_rule_matches,
- parent),
+ lttng::utils::container_of(condition,
+ <tng_condition_event_rule_matches::parent),
&evaluation_view, evaluation);
if (ret < 0) {
goto end;