X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.cpp;h=1601f17ccc2f0918f1bb81b0c6cc0fe00796ca23;hb=17fd219bebc7165e6085c3439feb349e7610b528;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..1601f17cc 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(); } /*