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: Ica13ae34db7c0fd04118d0e80c7ae71b77f66ad6
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
*/
static int ht_match_ust_app_event(struct cds_lfht_node *node, const void *_key)
{
- struct ust_app_event *event;
- const struct ust_app_ht_key *key;
-
LTTNG_ASSERT(node);
LTTNG_ASSERT(_key);
- event = caa_container_of(node, struct ust_app_event, node.node);
- key = (ust_app_ht_key *) _key;
+ auto *event = lttng_ht_node_container_of(node, &ust_app_event::node);
+ const auto *key = (ust_app_ht_key *) _key;
/* Match the 4 elements of the key: name, filter, loglevel, exclusions */