#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
-#include <common/compat/endian.h>
+#include <common/compat/endian.hpp>
#include <inttypes.h>
#include <stdbool.h>
-#include <version.h>
+#include <version.hpp>
#include <lttng/lttng.h>
-#include <common/common.h>
-#include <common/spawn-viewer.h>
-#include <common/utils.h>
+#include <common/common.hpp>
+#include <common/spawn-viewer.hpp>
+#include <common/utils.hpp>
#define COPY_BUFLEN 4096
#define RB_CRASH_DUMP_ABI_LEN 32
return ret;
}
src_file_len = layout->mmap_length;
- buf = (char *) zmalloc(src_file_len);
+ buf = calloc<char>(src_file_len);
if (!buf) {
return -1;
}
}
if (S_ISDIR(st.st_mode)) {
- char *subpath = (char *) zmalloc(PATH_MAX);
+ char *subpath = calloc<char>(PATH_MAX);
if (!subpath) {
PERROR("zmalloc path");