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 <jeremie.galarneau@efficios.com>
* 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;