sessiond: ust_app_channel: use lttng::utils::container_of
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Jul 2024 20:05:35 +0000 (20:05 +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: I29980d41d068b29a41f8148188d66a636ea5b46f
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-app.cpp

index c1de875eb2aa8f649965f20b7afa90f0eb6805f2..e60155d849c783d5069c32d585ea4b4e4ff9bf87 100644 (file)
@@ -5876,7 +5876,7 @@ static int find_or_create_ust_app_channel(struct ltt_ust_session *usess,
        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;
        }
 
This page took 0.027282 seconds and 4 git commands to generate.