X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpath.cpp;h=61e78a5c1d7a583f11b92ce5cbe2e9da20f3c375;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=1699cc5a6de28d0075002ee0266220399fd8c79d;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/common/path.cpp b/src/common/path.cpp index 1699cc5a6..61e78a5c1 100644 --- a/src/common/path.cpp +++ b/src/common/path.cpp @@ -70,7 +70,7 @@ char *utils_partial_realpath(const char *path) goto error; } - try_path_buf = (char *) zmalloc(LTTNG_PATH_MAX); + try_path_buf = zmalloc(LTTNG_PATH_MAX); if (!try_path_buf) { PERROR("zmalloc"); goto error; @@ -108,7 +108,7 @@ char *utils_partial_realpath(const char *path) } /* Allocate memory for the resolved path. */ - resolved_path = (char *) zmalloc(LTTNG_PATH_MAX); + resolved_path = zmalloc(LTTNG_PATH_MAX); if (resolved_path == NULL) { PERROR("zmalloc resolved path"); goto error; @@ -288,7 +288,7 @@ char *_utils_expand_path(const char *path, bool keep_symlink) } /* Allocate memory for the absolute_path */ - absolute_path = (char *) zmalloc(LTTNG_PATH_MAX); + absolute_path = zmalloc(LTTNG_PATH_MAX); if (absolute_path == NULL) { PERROR("zmalloc expand path"); goto error;