consumerd: lttng_consumer_channel: use lttng::utils::container_of
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Jul 2024 20:12:01 +0000 (20:12 +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: I69a15b9ad2e086d02beabb5c5f98d54d2ebf538d
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.cpp

index 22559052d231722772f57b6d0e8286288885cee7..e242f64b5ada62ca4302026592f9cbb2049637d0 100644 (file)
@@ -3070,7 +3070,7 @@ void *consumer_thread_channel_poll(void *data)
                        node = lttng_ht_iter_get_node<lttng_ht_node_u64>(&iter);
                        LTTNG_ASSERT(node);
 
-                       chan = caa_container_of(node, struct lttng_consumer_channel, wait_fd_node);
+                       chan = lttng::utils::container_of(node, &lttng_consumer_channel::wait_fd_node);
 
                        /* Check for error event */
                        if (revents & (LPOLLERR | LPOLLHUP)) {
This page took 0.026589 seconds and 4 git commands to generate.