mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
perf units: Constify variables storing the result of strchr() on const tables
commit 0e14cb3b24 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7d3f92238
commit
018533cfe8
@@ -12,7 +12,7 @@ unsigned long parse_tag_value(const char *str, struct parse_tag *tags)
|
||||
struct parse_tag *i = tags;
|
||||
|
||||
while (i->tag) {
|
||||
char *s = strchr(str, i->tag);
|
||||
const char *s = strchr(str, i->tag);
|
||||
|
||||
if (s) {
|
||||
unsigned long int value;
|
||||
|
||||
Reference in New Issue
Block a user