common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / evaluation.cpp
index a0fbc9dd905e1c247eedd3f16ae7837341158099..e6ebeec8e2680b07ef37850847bd67ff62281630 100644 (file)
@@ -118,9 +118,8 @@ ssize_t lttng_evaluation_create_from_payload(
                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,
+                                               &lttng_condition_event_rule_matches::parent),
                                &evaluation_view, evaluation);
                if (ret < 0) {
                        goto end;
This page took 0.023489 seconds and 4 git commands to generate.