From: Jérémie Galarneau Date: Sat, 24 Aug 2019 22:14:11 +0000 (-0700) Subject: Cleanup: mark utils_get_home_dir as returning a const string X-Git-Tag: v2.12.0-rc1~495 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=4f00620d66e81d89a546b29a774dad49d38983b3;hp=4f00620d66e81d89a546b29a774dad49d38983b3;p=lttng-tools.git Cleanup: mark utils_get_home_dir as returning a const string utils_get_home_dir() returns a string obtained from getenv() that should not be modified nor free'd. However, utils_get_user_home_dir() returns the path as a copy. The return parameter of utils_get_home_dir() is marked as const to underline this difference and prevent mix-ups in the use of those functions. Signed-off-by: Jérémie Galarneau ---