diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-27 01:15:47 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-27 02:36:24 -0300 |
| commit | 68abacb0686651dd3f0bbce2fa94b438afeb2fc4 (patch) | |
| tree | 56e0fcdea57a143b37a15573199de10be22835b4 /tools/perf/util | |
| parent | 8bf093acb3f1f07d846c86e32308f9f9954ed579 (diff) | |
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>
Diffstat (limited to 'tools/perf/util')
| -rw-r--r-- | tools/perf/util/jitdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c index d4fe35f9d9a5..e0ce8b904729 100644 --- a/tools/perf/util/jitdump.c +++ b/tools/perf/util/jitdump.c @@ -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; |
