X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fcmd-2-1.cpp;h=27a800c7d50ad50671b833b5337abef2bfc55a50;hb=e0252788784c4c7392e5105aed0eaf745798482e;hp=9befdd606ac6b8f0db8b7d0a36b2dc9148285f50;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/cmd-2-1.cpp b/src/bin/lttng-relayd/cmd-2-1.cpp index 9befdd606..27a800c7d 100644 --- a/src/bin/lttng-relayd/cmd-2-1.cpp +++ b/src/bin/lttng-relayd/cmd-2-1.cpp @@ -9,29 +9,32 @@ #define _LGPL_SOURCE +#include "cmd-2-1.hpp" +#include "utils.hpp" + #include -#include #include -#include +#include -#include "cmd-2-1.hpp" -#include "utils.hpp" +#include /* * cmd_recv_stream_2_1 allocates path_name and channel_name. */ int cmd_recv_stream_2_1(const struct lttng_buffer_view *payload, - char **ret_path_name, char **ret_channel_name) + char **ret_path_name, + char **ret_channel_name) { int ret; struct lttcomm_relayd_add_stream stream_info; - char *path_name = NULL; - char *channel_name = NULL; + char *path_name = nullptr; + char *channel_name = nullptr; size_t len; if (payload->size < sizeof(stream_info)) { ERR("Unexpected payload size in \"cmd_recv_stream_2_1\": expected >= %zu bytes, got %zu bytes", - sizeof(stream_info), payload->size); + sizeof(stream_info), + payload->size); ret = -1; goto error; }