X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.cpp;h=e0ffe69c0b1a5303cebfe908ab99cee7eb2220d1;hb=139a8d250fb18f8ffc95b0936f7285f7b484b72f;hp=727dc5db8967bad758a7ac11ed4d6611967cb2d7;hpb=48b7cdc221a445188d6d9bd08fc1686837e71224;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/snapshot.cpp b/src/bin/lttng-sessiond/snapshot.cpp index 727dc5db8..e0ffe69c0 100644 --- a/src/bin/lttng-sessiond/snapshot.cpp +++ b/src/bin/lttng-sessiond/snapshot.cpp @@ -10,10 +10,10 @@ #include #include -#include +#include -#include "snapshot.h" -#include "utils.h" +#include "snapshot.hpp" +#include "utils.hpp" /* * Return the atomically incremented value of next_output_id. @@ -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;