sessiond: ust_channel: use lttng::utils::container_of
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Jul 2024 19:11:32 +0000 (19:11 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Jul 2024 01:26:51 +0000 (01:26 +0000)
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>
src/bin/lttng-sessiond/cmd.cpp

index 2d081a9647e107389f29e29b9b5d63619a04b335..f2182f83885e3b884e74b13c8e8f3982c352cda9 100644 (file)
@@ -413,7 +413,7 @@ static enum lttng_error_code list_lttng_ust_global_events(char *channel_name,
                goto error;
        }
 
-       uchan = caa_container_of(&node->node, struct ltt_ust_channel, node.node);
+       uchan = lttng::utils::container_of(node, &ltt_ust_channel::node);
 
        channel_event_count = lttng_ht_get_count(uchan->events);
        if (channel_event_count == 0) {
This page took 0.027225 seconds and 4 git commands to generate.