summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06586bb)
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>
#include "lttng-relayd.h"
#include "utils.h"
#include "lttng-relayd.h"
#include "utils.h"
-static char *create_output_path_auto(char *path_name)
+static char *create_output_path_auto(const char *path_name)
{
int ret;
char *traces_path = NULL;
{
int ret;
char *traces_path = NULL;
-static char *create_output_path_noauto(char *path_name)
+static char *create_output_path_noauto(const char *path_name)
{
int ret;
char *traces_path = NULL;
{
int ret;
char *traces_path = NULL;
*
* Return the allocated string containing the path name or else NULL.
*/
*
* Return the allocated string containing the path name or else NULL.
*/
-char *create_output_path(char *path_name)
+char *create_output_path(const char *path_name)
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-char *create_output_path(char *path_name);
+char *create_output_path(const char *path_name);
#endif /* RELAYD_UTILS_H */
#endif /* RELAYD_UTILS_H */