common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / actions / notify.cpp
index ff117321e0b73d7e0e0b7e30fc6b865cd7085660..d58dcbe3621b54e1dd139e91a90b743257637a34 100644 (file)
@@ -21,7 +21,7 @@ static struct lttng_action_notify *action_notify_from_action(
 {
        LTTNG_ASSERT(action);
 
-       return container_of(action, struct lttng_action_notify, parent);
+       return lttng::utils::container_of(action, &lttng_action_notify::parent);
 }
 
 static const struct lttng_action_notify *action_notify_from_action_const(
@@ -29,7 +29,7 @@ static const struct lttng_action_notify *action_notify_from_action_const(
 {
        LTTNG_ASSERT(action);
 
-       return container_of(action, struct lttng_action_notify, parent);
+       return lttng::utils::container_of(action, &lttng_action_notify::parent);
 }
 
 static
This page took 0.022765 seconds and 4 git commands to generate.