X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=22d1790f726f6fed25df5f7d43082fe81d3e034e;hb=f6b73530e969cb5bde9bc069f72ceec932bc86ef;hp=406bfb62ac32e0a64b6b98628a4948e8f4f83c87;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 406bfb62a..22d1790f7 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -29,8 +29,7 @@ #include #include #include -#include -#include +#include static char *opt_output_path; static char *opt_session_name; @@ -501,7 +500,7 @@ error: * * Spawn a session daemon by forking and execv. */ -static int spawn_sessiond(char *pathname) +static int spawn_sessiond(const char *pathname) { int ret = 0; pid_t pid; @@ -580,7 +579,7 @@ end: static int launch_sessiond(void) { int ret; - char *pathname = NULL; + const char *pathname = NULL; ret = lttng_session_daemon_alive(); if (ret) {