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:
Arnaldo Carvalho de Melo 2026-01-27 01:15:47 -03:00
parent 8bf093acb3
commit 68abacb068
1 changed files with 1 additions and 1 deletions

View File

@ -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;