Change backing type of lttng_uuid to std::array
[lttng-tools.git] / src / bin / lttng-relayd / stream.cpp
index 65a8ce11abf95a9c8b45a7077c06f5db94cd535a..9f7bfcb15bb513229118302765c8c8f2655f7f91 100644 (file)
 
 #define _LGPL_SOURCE
 #include <algorithm>
-#include <common/common.h>
-#include <common/defaults.h>
-#include <common/fs-handle.h>
-#include <common/sessiond-comm/relayd.h>
-#include <common/utils.h>
+#include <common/common.hpp>
+#include <common/defaults.hpp>
+#include <common/fs-handle.hpp>
+#include <common/sessiond-comm/relayd.hpp>
+#include <common/utils.hpp>
 #include <sys/stat.h>
 #include <urcu/rculist.h>
 
-#include "lttng-relayd.h"
-#include "index.h"
-#include "stream.h"
-#include "viewer-stream.h"
+#include "lttng-relayd.hpp"
+#include "index.hpp"
+#include "stream.hpp"
+#include "viewer-stream.hpp"
 
 #include <sys/types.h>
 #include <fcntl.h>
@@ -580,7 +580,7 @@ struct relay_stream *stream_create(struct ctf_trace *trace,
        bool acquired_reference = false;
        struct lttng_trace_chunk *current_trace_chunk;
 
-       stream = (relay_stream *) zmalloc(sizeof(struct relay_stream));
+       stream = zmalloc<relay_stream>();
        if (stream == NULL) {
                PERROR("relay stream zmalloc");
                goto error_no_alloc;
This page took 0.025622 seconds and 4 git commands to generate.