]> git.ipfire.org Git - thirdparty/util-linux.git/commit
partx: fix const qualifier warning in get_max_partno
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:48:53 +0000 (16:48 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:48:53 +0000 (16:48 +0100)
commit4c94ce5d05d97420df7a512bbbaee8c4017414ae
treebcaeb80e5e7a83029362cb1e4a758ec0b6e93004
parent70379d240dcf975d140160bb4c14cf1b3fe70bcc
partx: fix const qualifier warning in get_max_partno

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

The strrchr() 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>
disk-utils/partx.c