Cleanup: mark utils_get_home_dir as returning a const string
[lttng-tools.git] / src / bin / lttng / conf.c
index 52979af0d1fb0df1f8f99409b954e15520091cf2..6de527553124df51be2d8f811928750701434c1b 100644 (file)
@@ -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) {
This page took 0.023303 seconds and 4 git commands to generate.