]> git.ipfire.org Git - thirdparty/util-linux.git/commit
enosys: fix const qualifier warning in parse_block
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:47:46 +0000 (16:47 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Dec 2025 13:48:07 +0000 (14:48 +0100)
commit2d3ab47ab080cd37bd4fadf6d5ad879bde528603
tree6064a018ec7ff5b931dc1d8ca598cd2db71da6b8
parent1f58ebe18a233da355d6d50de766a232f72d29c2
enosys: fix const qualifier warning in parse_block

Fix const qualifier discarded warning in parse_block().
This warning is reported by gcc 15 which defaults to the C23 standard.

The strchr() function returns a pointer into a const string, so the
receiving variable must be declared as const char *.

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 70379d240dcf975d140160bb4c14cf1b3fe70bcc)
misc-utils/enosys.c