sessiond: ust_error_accounting_entry: use lttng::utils::container_of
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Jul 2024 19:12:15 +0000 (19: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: I8b9167ad2e8100ed9a9f99d2ef23a8859713838d
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/event-notifier-error-accounting.cpp

index f9f685176ba06bcdfbc607c1b3e44d56ad3c5f31..27d049601c1bc24662f9d9c68f08abe7fdf279a3 100644 (file)
@@ -339,7 +339,7 @@ static struct ust_error_accounting_entry *ust_error_accounting_entry_find(struct
        } else {
                bool got_ref;
 
-               entry = caa_container_of(node, struct ust_error_accounting_entry, node);
+               entry = lttng::utils::container_of(node, &ust_error_accounting_entry::node);
 
                got_ref = ust_error_accounting_entry_get(entry);
                if (!got_ref) {
This page took 0.026586 seconds and 4 git commands to generate.