Extend the rotation API to provide network trace archive locations
[lttng-tools.git] / src / bin / lttng-relayd / utils.c
index 392fab6a1b68bf6e25061bb6ec869e6738e67c8a..837c828d22b935cb7eb353a60f6d3e93f2dc277d 100644 (file)
@@ -16,7 +16,7 @@
  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -29,7 +29,7 @@
 #include "lttng-relayd.h"
 #include "utils.h"
 
-static char *create_output_path_auto(char *path_name)
+static char *create_output_path_auto(const char *path_name)
 {
        int ret;
        char *traces_path = NULL;
@@ -58,7 +58,7 @@ exit:
        return traces_path;
 }
 
-static char *create_output_path_noauto(char *path_name)
+static char *create_output_path_noauto(const char *path_name)
 {
        int ret;
        char *traces_path = NULL;
@@ -84,7 +84,7 @@ exit:
  *
  * Return the allocated string containing the path name or else NULL.
  */
-char *create_output_path(char *path_name)
+char *create_output_path(const char *path_name)
 {
        assert(path_name);
 
This page took 0.024081 seconds and 4 git commands to generate.