port: extensions are enable by AC_USE_SYSTEM_EXTENSIONS
[lttng-tools.git] / src / common / pipe.cpp
index 2de91f5a06eaac1f87aec7e724d9a98c5ef25eb3..8bf0c1ff33341e54728d3b0b196f62752fc536c6 100644 (file)
@@ -11,9 +11,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#include <common/common.h>
+#include <common/common.hpp>
 
-#include "pipe.h"
+#include "pipe.hpp"
 
 /*
  * Lock read side of a pipe.
@@ -108,7 +108,7 @@ static struct lttng_pipe *_pipe_create(void)
        int ret;
        struct lttng_pipe *p;
 
-       p = (lttng_pipe *) zmalloc(sizeof(*p));
+       p = zmalloc<lttng_pipe>();
        if (!p) {
                PERROR("zmalloc pipe create");
                goto end;
This page took 0.023838 seconds and 4 git commands to generate.