Clean-up: utils: make utils_partial_realpath static
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Apr 2021 17:18:15 +0000 (13:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 May 2021 17:26:35 +0000 (13:26 -0400)
It is only used within its file.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1467f5eeb11c66ecbe358290a172c37db34d881a

src/common/utils.c
src/common/utils.h

index 02eddfae4a0c93d044aaad23c75a436ce76bf4a3..803fb3363c8148ecbe17d769d59b534cb1afa6d4 100644 (file)
@@ -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;
index 11388c9031bfdaabffd9b1dad596410af43e5e9f..7f102beeba31da8cd51d74b5e573573ddb598ae2 100644 (file)
@@ -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);
This page took 0.026791 seconds and 4 git commands to generate.