Fix: create_output_path() relayd util is not const-correct
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 6 Mar 2018 22:07:46 +0000 (17:07 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Apr 2018 15:25:12 +0000 (11:25 -0400)
commit2cc6b436600827e0dcf1b889e9ff53be60491d8e
tree8f82e1c3f445140e877640861ff1050a68b13105
parent6bcde26bf3807c35a04824ed1497c540d9d69839
Fix: create_output_path() relayd util is not const-correct

Code using this utility assumes that the path name passed to
this function is not modified. Using 'const' enforces this
assumption.

Moreover, this change makes it easier to write const-correct
code in the relayd.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/utils.c
src/bin/lttng-relayd/utils.h
This page took 0.025726 seconds and 4 git commands to generate.