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>
Tue, 6 Mar 2018 22:09:30 +0000 (17:09 -0500)
commit753871f3b4487af73ffe955783dba4f11960c3d3
tree847e98073302c81b9c0906cf6ae8fa1015bdb5e1
parent06586bbe5daca94845ab53f177883eb97e56bf50
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.025003 seconds and 4 git commands to generate.