X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=6de527553124df51be2d8f811928750701434c1b;hb=83d6d6c4496e692df39843142cb8cf96279eaa20;hp=52979af0d1fb0df1f8f99409b954e15520091cf2;hpb=9b27c72144f412ea2749a3ed18b49568881599a8;p=lttng-tools.git 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) {