]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: fix const qualifier warnings in parse_callerid
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:33:04 +0000 (16:33 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:33:04 +0000 (16:33 +0100)
commit40e6850d2b2ba2492d5f3e75656cb9bcce2806bb
tree07d055b8f50fb54415e587641da0fdf195e8ad87
parentc45442ef125270d0ab2cb539747ccaf737d60d37
dmesg: fix const qualifier warnings in parse_callerid

Fix const qualifier discarded warnings in parse_callerid().
These warnings are reported by gcc 15 which defaults to the C23 standard.

The strchr() and strstr() functions return pointers into const strings,
so the receiving variables must be declared as const char *.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/dmesg.c