common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / bin / lttng-sessiond / dispatch.cpp
index 8e80c29855e934576b0a17f8814433d835f0114f..82bf1c2d3128a026a0d8eb62b18eb9a4b2e70353 100644 (file)
@@ -284,7 +284,7 @@ static void *thread_dispatch_ust_registration(void *data)
                                break;
                        }
 
-                       ust_cmd = caa_container_of(node, struct ust_command, node);
+                       ust_cmd = lttng::utils::container_of(node, &ust_command::node);
 
                        DBG("Dispatching UST registration pid:%d ppid:%d uid:%d"
                                        " gid:%d sock:%d name:%s (version %d.%d)",
@@ -476,7 +476,7 @@ error:
                if (node == NULL) {
                        break;
                }
-               ust_cmd = caa_container_of(node, struct ust_command, node);
+               ust_cmd = lttng::utils::container_of(node, &ust_command::node);
                ret = close(ust_cmd->sock);
                if (ret < 0) {
                        PERROR("close ust sock exit dispatch %d", ust_cmd->sock);
This page took 0.022891 seconds and 4 git commands to generate.