From 83c50c540631cb2cd9cd099a801f2329a5c4b8bf Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 15:29:29 -0500 Subject: [PATCH] Make _utils_expand_path static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's only used in its own file, so make it static. Fixes: CC utils.lo /home/smarchi/src/lttng-tools/src/common/utils.c:328:7: error: no previous declaration for ‘_utils_expand_path’ [-Werror=missing-declarations] char *_utils_expand_path(const char *path, bool keep_symlink) ^~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: Ibab3bf9994f29b1a841e9d3ddc9bfce1f8e73032 Signed-off-by: Jérémie Galarneau --- src/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.c b/src/common/utils.c index 0147c8c99..2e07d4ff0 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -324,7 +324,7 @@ error: * The returned string was allocated in the function, it is thus of * the responsibility of the caller to free this memory. */ -LTTNG_HIDDEN +static char *_utils_expand_path(const char *path, bool keep_symlink) { int ret; -- 2.34.1