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 15:22:06 +0000 (11:22 -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 45aeddcf69cf8e9f431b51fade1d8a7016fc3ad6..4827cfc7b732947ff8e11cfe1ac8b6781f21e083 100644 (file)
@@ -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;
index dec4cd8aa2268490eae52adb55795d76ab62a07b..18722f9f282c464a52d0d4fa19889c8be905a1e8 100644 (file)
@@ -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);
This page took 0.026526 seconds and 4 git commands to generate.