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>
(cherry picked from commit
cc1f2ac99b99eede36a58cf115a56bdfbc977e52)
static int read_speed(const char *devname)
{
int drive_number = -1;
- char *name;
+ const char *name;
FILE *f;
f = fopen(_PATH_PROC_CDROMINFO, "r");