Fix: utils: unhandled close return value
[lttng-tools.git] / src / common / evaluation.cpp
index a0fbc9dd905e1c247eedd3f16ae7837341158099..2b57de62cbb5ab07c37cceb9e38bd63188390194 100644 (file)
@@ -25,9 +25,9 @@ int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation,
                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));
@@ -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.023814 seconds and 4 git commands to generate.