X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Futils.c;h=837c828d22b935cb7eb353a60f6d3e93f2dc277d;hp=dbb1d1c7109254e88d9a80bd7a2de49174ce5039;hb=dd73d57bb95fae31161ca0781108d166082a06f5;hpb=6c1c0768320135c6936c371b09731851b508c023 diff --git a/src/bin/lttng-relayd/utils.c b/src/bin/lttng-relayd/utils.c index dbb1d1c71..837c828d2 100644 --- a/src/bin/lttng-relayd/utils.c +++ b/src/bin/lttng-relayd/utils.c @@ -16,7 +16,6 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include #include @@ -30,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; @@ -59,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; @@ -85,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);