Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / index.cpp
index 6cf131b256757cba64ab7796ea50a19cd0c20a8a..e7846a5b9233b9141d6c9ffd48717aa188d93641 100644 (file)
@@ -9,14 +9,14 @@
 
 #define _LGPL_SOURCE
 
-#include <common/common.h>
-#include <common/utils.h>
-#include <common/compat/endian.h>
+#include <common/common.hpp>
+#include <common/utils.hpp>
+#include <common/compat/endian.hpp>
 
-#include "lttng-relayd.h"
-#include "stream.h"
-#include "index.h"
-#include "connection.h"
+#include "lttng-relayd.hpp"
+#include "stream.hpp"
+#include "index.hpp"
+#include "connection.hpp"
 
 /*
  * Allocate a new relay index object. Pass the stream in which it is
@@ -34,7 +34,7 @@ static struct relay_index *relay_index_create(struct relay_stream *stream,
        DBG2("Creating relay index for stream id %" PRIu64 " and seqnum %" PRIu64,
                        stream->stream_handle, net_seq_num);
 
-       index = (relay_index *) zmalloc(sizeof(*index));
+       index = zmalloc<relay_index>();
        if (!index) {
                PERROR("Relay index zmalloc");
                goto end;
This page took 0.024324 seconds and 4 git commands to generate.