From 76b9afaa436496319456775d7ba7f20eeac09d5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 6 Mar 2018 11:33:19 -0500 Subject: [PATCH] Clean-up: relayd send_command() helper is not const-correct MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The payload sent to the relayd as part of a command is not expected to be modified when it is sent. This commit makes the data parameter 'const' to enforce this assumption. Signed-off-by: Jérémie Galarneau --- src/common/relayd/relayd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/relayd/relayd.c b/src/common/relayd/relayd.c index c46290d1a..c3ad597ed 100644 --- a/src/common/relayd/relayd.c +++ b/src/common/relayd/relayd.c @@ -35,7 +35,7 @@ * Send command. Fill up the header and append the data. */ static int send_command(struct lttcomm_relayd_sock *rsock, - enum lttcomm_relayd_command cmd, void *data, size_t size, + enum lttcomm_relayd_command cmd, const void *data, size_t size, int flags) { int ret; -- 2.34.1