perf bpf-event: Constify variables storing the result of strchr() on const tables
As newer glibcs will propagate the const attribute of the searched table to its return. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
79bba3a183
commit
8bf093acb3
|
|
@ -733,7 +733,8 @@ kallsyms_process_symbol(void *data, const char *_name,
|
|||
char type __maybe_unused, u64 start)
|
||||
{
|
||||
char disp[KSYM_NAME_LEN];
|
||||
char *module, *name;
|
||||
const char *module;
|
||||
char *name;
|
||||
unsigned long id;
|
||||
int err = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue