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