From 440bede9ee59598b9ea8a3a3ff3191b8c84bd4f7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 12 Apr 2021 13:18:15 -0400 Subject: [PATCH] Clean-up: utils: make utils_partial_realpath static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It is only used within its file. Change-Id: I3e9b01e0cb765c74d3564a7c57598dace8104a29 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- src/common/utils.c | 2 +- src/common/utils.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/utils.c b/src/common/utils.c index 134d2054f..ef22144d4 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -65,7 +65,7 @@ * to specify the size of the resolved_path argument if given, or the size to * allocate. */ -LTTNG_HIDDEN +static char *utils_partial_realpath(const char *path, char *resolved_path, size_t size) { char *cut_path = NULL, *try_path = NULL, *try_path_prev = NULL; diff --git a/src/common/utils.h b/src/common/utils.h index 570216d53..52dcd01fa 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -21,8 +21,6 @@ #define MEBI_LOG2 20 #define GIBI_LOG2 30 -char *utils_partial_realpath(const char *path, char *resolved_path, - size_t size); char *utils_expand_path(const char *path); char *utils_expand_path_keep_symlink(const char *path); int utils_create_pipe(int *dst); -- 2.34.1