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>
Thu, 5 Sep 2019 20:39:15 +0000 (16:39 -0400)
commitd238c88d41dc79062091c0f84b1023e068c196e0
treef3678741eddb7d98ccc71dd14435f3048b5434c6
parentcc871152d000c06fa7a7e6e75559f1147bf72e70
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.027629 seconds and 4 git commands to generate.