perf units: 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>
This commit is contained in:
Arnaldo Carvalho de Melo 2026-01-27 01:15:47 -03:00
parent 97b81df722
commit 0e14cb3b24

View File

@ -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;