X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=4079d6ed9421273680d102d4bc9cf9353534dfb6;hp=9e1773bb4b90aa39da30a6a0b3fb2de865ea6a5d;hb=ce0b1d61919f37517a6212f7af2afe0fa1b1dcb0;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index 9e1773bb4..4079d6ed9 100644 --- a/src/bin/lttng/conf.c +++ b/src/bin/lttng/conf.c @@ -13,8 +13,8 @@ #include #include #include -#include +#include #include #include @@ -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];