projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c0bc9
)
perf demangle-java: Constify variables storing the result of strchr() on const tables
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 27 Jan 2026 04:15:47 +0000
(
01:15
-0300)
committer
Arnaldo 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
patch
|
blob
|
history
diff --git
a/tools/perf/util/demangle-java.c
b/tools/perf/util/demangle-java.c
index
ddf33d5
..
c3cb327
100644
(file)
--- a/
tools/perf/util/demangle-java.c
+++ b/
tools/perf/util/demangle-java.c
@@
-158,7
+158,7
@@
char *
java_demangle_sym(const char *str, int flags)
{
char *buf, *ptr;
- char *p;
+ c
onst c
har *p;
size_t len, l1 = 0;
if (!str)