X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=6de527553124df51be2d8f811928750701434c1b;hp=52979af0d1fb0df1f8f99409b954e15520091cf2;hb=4f00620d66e81d89a546b29a774dad49d38983b3;hpb=a620c891bde6720d24c9c391fdcbc070d319d04c diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index 52979af0d..6de527553 100644 --- 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. */ -static int create_config_file(char *path) +static int create_config_file(const char *path) { int ret; FILE *fp; @@ -155,7 +155,7 @@ end: */ void config_destroy_default(void) { - char *path = utils_get_home_dir(); + const char *path = utils_get_home_dir(); if (path == NULL) { return; } @@ -302,7 +302,7 @@ error: int config_init(const char *session_name) { int ret; - char *path; + const char *path; path = utils_get_home_dir(); if (path == NULL) {