Fix: lttng: add-trigger: erroneous null check on location return
[lttng-tools.git] / src / bin / lttng / commands / create.c
index 406bfb62ac32e0a64b6b98628a4948e8f4f83c87..22d1790f726f6fed25df5f7d43082fe81d3e034e 100644 (file)
@@ -29,8 +29,7 @@
 #include <common/sessiond-comm/sessiond-comm.h>
 #include <common/uri.h>
 #include <common/utils.h>
-#include <lttng/snapshot.h>
-#include <lttng/session-descriptor.h>
+#include <lttng/lttng.h>
 
 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) {
This page took 0.023168 seconds and 4 git commands to generate.