#include <stdlib.h>
#include <string.h>
-#include <common/mi-lttng.h>
-#include <common/time.h>
-#include <common/tracker.h>
-#include <lttng/domain-internal.h>
+#include <common/mi-lttng.hpp>
+#include <common/time.hpp>
+#include <common/tracker.hpp>
+#include <lttng/domain-internal.hpp>
#include <lttng/lttng.h>
-#include "../command.h"
+#include "../command.hpp"
static int opt_userspace;
static int opt_kernel;
}
/* Caller must free() *cmdline */
- cmdline = (char *) zmalloc(PATH_MAX);
+ cmdline = zmalloc<char>(PATH_MAX);
if (!cmdline) {
PERROR("malloc cmdline");
goto end;
}
+
ret = fread(cmdline, 1, PATH_MAX, fp);
if (ret < 0) {
PERROR("fread proc list");