Skip to content

Commit 33250aa

Browse files
acmelgregkh
authored andcommitted
perf jitdump: Constify variables storing the result of strchr() on const tables
commit 68abacb upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 972c656 commit 33250aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/perf/util/jitdump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ jit_inject(struct jit_buf_desc *jd, const char *path)
754754
static int
755755
jit_detect(const char *mmap_name, pid_t pid, struct nsinfo *nsi, bool *in_pidns)
756756
{
757-
char *p;
757+
const char *p;
758758
char *end = NULL;
759759
pid_t pid2;
760760

0 commit comments

Comments
 (0)