perf jitdump: 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
8bf093acb3
commit
68abacb068
|
|
@ -758,7 +758,7 @@ jit_inject(struct jit_buf_desc *jd, const char *path)
|
|||
static int
|
||||
jit_detect(const char *mmap_name, pid_t pid, struct nsinfo *nsi, bool *in_pidns)
|
||||
{
|
||||
char *p;
|
||||
const char *p;
|
||||
char *end = NULL;
|
||||
pid_t pid2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue