]> git.ipfire.org Git - thirdparty/util-linux.git/commit
eject: fix const qualifier warning in read_speed
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:50:19 +0000 (16:50 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:50:19 +0000 (16:50 +0100)
commitcc1f2ac99b99eede36a58cf115a56bdfbc977e52
tree5fe0fb7ac1f936fb25b3fd39c8350a4a92e356b2
parent4c94ce5d05d97420df7a512bbbaee8c4017414ae
eject: fix const qualifier warning in read_speed

Fix const qualifier discarded warning in read_speed().
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>
sys-utils/eject.c