Description: fix FTBFS with GCC-14 Explicitly define block argument as int to fix #1074807. Add brackets to correctly guard statements in if-clause. Author: Christian T. Steigies Last-Update: 2024-08-18 --- a/amigastuff.c +++ b/amigastuff.c @@ -66,9 +66,9 @@ int rigiddisk_new(int first); -char *get_block(block) +char *get_block(int block) { - /* This is a true quickhack. Whenn we are in list only + /* This is a true quickhack. When we are in list only * mode, we may not have swap and so we may not be able * to hold the whole RDB data, so we do some stupid * switching. This is slow and breaks the interactive mode. @@ -81,9 +81,10 @@ if (list_only) { if ((l=open(disk_device,O_RDONLY))<0) { - if (get_dev) + if (get_dev) { fprintf (stderr,"Cannot open device %s\n",disk_device); return NULL; + } } if (lseek(l,(block*SECTOR_SIZE),SEEK_SET)<0) {