Cleanup: mark utils_get_home_dir as returning a const string
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 24 Aug 2019 22:14:11 +0000 (15:14 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 24 Aug 2019 22:14:15 +0000 (15:14 -0700)
commit4f00620d66e81d89a546b29a774dad49d38983b3
treebad4af59cb307e05132ce76036f1dd696d7fc327
parenta620c891bde6720d24c9c391fdcbc070d319d04c
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 <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/health-relayd.c
src/bin/lttng-relayd/session.c
src/bin/lttng-relayd/utils.c
src/bin/lttng-sessiond/notification-thread.c
src/bin/lttng/conf.c
src/bin/lttng/utils.c
src/common/config/session-config.c
src/common/utils.c
src/common/utils.h
This page took 0.026299 seconds and 4 git commands to generate.