fix: string constants (-Wwrite-strings)
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 26 Mar 2021 19:34:21 +0000 (15:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 31 Mar 2021 18:21:43 +0000 (14:21 -0400)
commit74c3f8e27f5b750b71136ce1737972c28f288540
tree2c0c65e90a6ec865b95a783ee9d660b29e603fdd
parent4b4a133740c87d9a851023a7aeb06b78d887e51b
fix: string constants (-Wwrite-strings)

Do not use an anonymous string literal with a non-const char pointer as
this will discard the implicit const, use static non-const string
instead when appropriate. Otherwise, we could end up trying to write to
a string constant.

Change-Id: Ie2bb0e5ab7978930f9edcdb379bd181caaacc15c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/easy-ust/sample_component_provider.h
doc/examples/gen-tp/sample_tracepoint.tp
liblttng-ust/lttng-context-procname.c
liblttng-ust/ust-events-internal.h
snprintf/vfprintf.c
tests/compile/test-app-ctx/hello.c
This page took 0.028325 seconds and 4 git commands to generate.