From: Simon Marchi Date: Mon, 12 Apr 2021 17:18:15 +0000 (-0400) Subject: Clean-up: utils: make utils_partial_realpath static X-Git-Tag: v2.11.7~19 X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=77b1882c1ae0302be8102ca115812694e4411fc5 Clean-up: utils: make utils_partial_realpath static It is only used within its file. Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau Change-Id: I1467f5eeb11c66ecbe358290a172c37db34d881a --- diff --git a/src/common/utils.c b/src/common/utils.c index 02eddfae4..803fb3363 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -71,7 +71,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 11388c903..7f102beeb 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -31,8 +31,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);