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: I29980d41d068b29a41f8148188d66a636ea5b46f
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lttng_ht_lookup(ua_sess->channels, (void *) uchan->name, &iter);
ua_chan_node = lttng_ht_iter_get_node<lttng_ht_node_str>(&iter);
if (ua_chan_node) {
- *ua_chan = caa_container_of(ua_chan_node, struct ust_app_channel, node);
+ *ua_chan = lttng::utils::container_of(ua_chan_node, &ust_app_channel::node);
goto end;
}