Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / connection.cpp
index 98ffad29f986de121db5b607c9a9cfd7b0918abb..fb53862a436bde4a4c84b1cc7e6a467049efa444 100644 (file)
@@ -8,12 +8,12 @@
  */
 
 #define _LGPL_SOURCE
-#include <common/common.h>
+#include <common/common.hpp>
 #include <urcu/rculist.h>
 
-#include "connection.h"
-#include "stream.h"
-#include "viewer-session.h"
+#include "connection.hpp"
+#include "stream.hpp"
+#include "viewer-session.hpp"
 
 bool connection_get(struct relay_connection *conn)
 {
@@ -90,7 +90,7 @@ struct relay_connection *connection_create(struct lttcomm_sock *sock,
 {
        struct relay_connection *conn;
 
-       conn = (relay_connection *) zmalloc(sizeof(*conn));
+       conn = zmalloc<relay_connection>();
        if (!conn) {
                PERROR("zmalloc relay connection");
                goto end;
This page took 0.023477 seconds and 4 git commands to generate.