Fix: sessiond: report client list allocation failure as a fatal error
[lttng-tools.git] / src / bin / lttng-sessiond / snapshot.cpp
index f7821da95da978ac54f1111d7622a4080e8b31ca..e0ffe69c0b1a5303cebfe908ab99cee7eb2220d1 100644 (file)
@@ -165,7 +165,7 @@ error:
 
 struct snapshot_output *snapshot_output_alloc(void)
 {
-       return (snapshot_output *) zmalloc(sizeof(struct snapshot_output));
+       return zmalloc<snapshot_output>();
 }
 
 /*
@@ -276,7 +276,7 @@ struct snapshot_output *snapshot_find_output_by_id(uint32_t id,
                DBG3("Snapshot output not found with id %" PRId32, id);
                goto error;
        }
-       output = caa_container_of(node, struct snapshot_output, node);
+       output = lttng::utils::container_of(node, &snapshot_output::node);
 
 error:
        return output;
This page took 0.023667 seconds and 4 git commands to generate.