Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf trace: Deal with compiler const checks

The strchr() function these days return const/non-const based on the arg
it receives, and sometimes we need to use casts when we're dealing with
variables that are used in code that needs to safely change the returned
value and sometimes not (as it points to really const areas).

Tweak one such case.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -1
+1 -1
tools/perf/builtin-trace.c
··· 5190 5190 } 5191 5191 5192 5192 while (1) { 5193 - if ((sep = strchr(s, ',')) != NULL) 5193 + if ((sep = strchr((char *)s, ',')) != NULL) 5194 5194 *sep = '\0'; 5195 5195 5196 5196 list = 0;