Fix: standardize man pages building/installing
[lttng-tools.git] / src / lib / lttng-ctl / load.c
index 3811981ef007f6c906ff326fc5b27ddc2d09a093..d1faf02693305541eb521eb27b1153e623835b4b 100644 (file)
@@ -15,7 +15,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <string.h>
 
@@ -23,7 +23,7 @@
 #include <lttng/load.h>
 #include <lttng/load-internal.h>
 #include <common/sessiond-comm/sessiond-comm.h>
-#include <common/config/config.h>
+#include <common/config/session-config.h>
 
 #include "lttng-ctl-helper.h"
 
@@ -83,7 +83,7 @@ int lttng_load_session_attr_set_session_name(
                size_t len;
 
                len = strlen(session_name);
-               if (len >= NAME_MAX) {
+               if (len >= LTTNG_NAME_MAX) {
                        ret = -LTTNG_ERR_INVALID;
                        goto error;
                }
@@ -166,7 +166,7 @@ int lttng_load_session(struct lttng_load_session_attr *attr)
        }
 
        ret = config_load_session(attr->input_url, attr->session_name,
-                       attr->overwrite);
+                       attr->overwrite, 0);
 
 end:
        return ret;
This page took 0.026488 seconds and 5 git commands to generate.