Fix: sessiond: assertion fails when getting name of trigger
[lttng-tools.git] / src / bin / lttng / conf.c
index 9e1773bb4b90aa39da30a6a0b3fb2de865ea6a5d..4079d6ed9421273680d102d4bc9cf9353534dfb6 100644 (file)
@@ -13,8 +13,8 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <errno.h>
 
+#include <common/compat/errno.h>
 #include <common/common.h>
 #include <common/utils.h>
 
@@ -266,7 +266,7 @@ char *config_read_session_name_quiet(const char *path)
 int config_add_session_name(const char *path, const char *name)
 {
        int ret;
-       char *attr = "session=";
+       const char *attr = "session=";
        /* Max name len accepted plus attribute's len and the NULL byte. */
        char session_name[NAME_MAX + strlen(attr) + 1];
 
This page took 0.023001 seconds and 4 git commands to generate.