X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.cpp;h=e0ffe69c0b1a5303cebfe908ab99cee7eb2220d1;hb=de5abcb02431896a1827dff5d3376e1f2e124cd7;hp=f7821da95da978ac54f1111d7622a4080e8b31ca;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/snapshot.cpp b/src/bin/lttng-sessiond/snapshot.cpp index f7821da95..e0ffe69c0 100644 --- a/src/bin/lttng-sessiond/snapshot.cpp +++ b/src/bin/lttng-sessiond/snapshot.cpp @@ -165,7 +165,7 @@ error: struct snapshot_output *snapshot_output_alloc(void) { - return (snapshot_output *) zmalloc(sizeof(struct snapshot_output)); + return zmalloc(); } /* @@ -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;