]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: fix const qualifier warnings for C23
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:43:38 +0000 (16:43 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:43:38 +0000 (16:43 +0100)
commit22c3b959ef381b35a55ed00cf6acd2507b461d4b
tree520f1734288cb6a55615ea163cd4f15ea06a1bc3
parent935f2ab21add95059a92208f69ef578708307481
logger: fix const qualifier warnings for C23

Fix const qualifier discarded warnings in valid_structured_data_param()
and valid_structured_data_id() functions. 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>
misc-utils/logger.c