common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / fd-handle.cpp
index 579757782702f175315254b3003b001e1355bbae..8a0d95243bcdfebf4035da2981ff13cbaed454d9 100644 (file)
@@ -19,7 +19,7 @@ struct fd_handle {
 static void fd_handle_release(struct urcu_ref *ref)
 {
        int ret;
-       struct fd_handle *handle = container_of(ref, struct fd_handle, ref);
+       struct fd_handle *handle = lttng::utils::container_of(ref, &fd_handle::ref);
 
        LTTNG_ASSERT(handle->fd >= 0);
        ret = close(handle->fd);
This page took 0.022763 seconds and 4 git commands to generate.