From: Simon Marchi Date: Mon, 25 Nov 2019 20:29:29 +0000 (-0500) Subject: Make _utils_expand_path static X-Git-Tag: v2.12.0-rc1~202 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=83c50c540631cb2cd9cd099a801f2329a5c4b8bf Make _utils_expand_path static 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 --- 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;