]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: fix const qualifier warnings for C23
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 14:41:21 +0000 (15:41 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 14:41:21 +0000 (15:41 +0100)
commitdbe4c16973d5d0f69ba3bf1bd8942a51de9a0933
treeb1d34de5fab99139d0036f755b572261b007dfbd
parent72b3231a306c003e4a856df54240c32f8b8eb793
lsns: fix const qualifier warnings for C23

Fix const qualifier discarded warnings in read_persistent_namespaces()
and is_path_included() 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>
sys-utils/lsns.c