]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf demangle-java: Constify variables storing the result of strchr() on const tables
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 04:15:47 +0000 (01:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:33:29 +0000 (02:33 -0300)
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>
tools/perf/util/demangle-java.c

index ddf33d58bcd356b832c467c7b9368495365592fb..c3cb327ed56236110a3254afad8b7906b2446f22 100644 (file)
@@ -158,7 +158,7 @@ char *
 java_demangle_sym(const char *str, int flags)
 {
        char *buf, *ptr;
-       char *p;
+       const char *p;
        size_t len, l1 = 0;
 
        if (!str)