*/
#define _LGPL_SOURCE
-#include <common/macros.h>
-#include <common/common.h>
-#include <common/path.h>
+#include <common/macros.hpp>
+#include <common/common.hpp>
+#include <common/path.hpp>
/*
* Return a partial realpath(3) of the path even if the full path does not
goto error;
}
- try_path_buf = (char *) zmalloc(LTTNG_PATH_MAX);
+ try_path_buf = zmalloc<char>(LTTNG_PATH_MAX);
if (!try_path_buf) {
PERROR("zmalloc");
goto error;
}
/* Allocate memory for the resolved path. */
- resolved_path = (char *) zmalloc(LTTNG_PATH_MAX);
+ resolved_path = zmalloc<char>(LTTNG_PATH_MAX);
if (resolved_path == NULL) {
PERROR("zmalloc resolved path");
goto error;
}
/* Allocate memory for the absolute_path */
- absolute_path = (char *) zmalloc(LTTNG_PATH_MAX);
+ absolute_path = zmalloc<char>(LTTNG_PATH_MAX);
if (absolute_path == NULL) {
PERROR("zmalloc expand path");
goto error;