]> 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>
Thu, 27 Nov 2025 15:47:46 +0000 (16:47 +0100)
commit70379d240dcf975d140160bb4c14cf1b3fe70bcc
tree95f4a13c5da2705400a4e1f4cb8347272dc6ee00
parent01018b74163f9122c75179a7c991b0aa0f8c603c
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>
misc-utils/enosys.c