caa_container_of makes use of offsetof which is conditionally
supported for non-POD types. Replace its use by
lttng::utils::container_of.
Change-Id: Ib00bfa536d9412824d49f7c8bff429b0aa03762e
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
goto error;
}
- uchan = caa_container_of(&node->node, struct ltt_ust_channel, node.node);
+ uchan = lttng::utils::container_of(node, <t_ust_channel::node);
channel_event_count = lttng_ht_get_count(uchan->events);
if (channel_event_count == 0) {