projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: mark utils_get_home_dir as returning a const string
[lttng-tools.git]
/
src
/
bin
/
lttng
/
conf.c
diff --git
a/src/bin/lttng/conf.c
b/src/bin/lttng/conf.c
index 52979af0d1fb0df1f8f99409b954e15520091cf2..6de527553124df51be2d8f811928750701434c1b 100644
(file)
--- a/
src/bin/lttng/conf.c
+++ b/
src/bin/lttng/conf.c
@@
-77,7
+77,7
@@
error:
* On success, returns 0;
* on error, returns -1.
*/
* On success, returns 0;
* on error, returns -1.
*/
-static int create_config_file(char *path)
+static int create_config_file(c
onst c
har *path)
{
int ret;
FILE *fp;
{
int ret;
FILE *fp;
@@
-155,7
+155,7
@@
end:
*/
void config_destroy_default(void)
{
*/
void config_destroy_default(void)
{
- char *path = utils_get_home_dir();
+ c
onst c
har *path = utils_get_home_dir();
if (path == NULL) {
return;
}
if (path == NULL) {
return;
}
@@
-302,7
+302,7
@@
error:
int config_init(const char *session_name)
{
int ret;
int config_init(const char *session_name)
{
int ret;
- char *path;
+ c
onst c
har *path;
path = utils_get_home_dir();
if (path == NULL) {
path = utils_get_home_dir();
if (path == NULL) {
This page took
0.023586 seconds
and
4
git commands to generate.