#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.
int ret;
struct lttng_pipe *p;
- p = (lttng_pipe *) zmalloc(sizeof(*p));
+ p = zmalloc<lttng_pipe>();
if (!p) {
PERROR("zmalloc pipe create");
goto end;